onScreenChanges

Handles screen changes and adjusts the display settings based on event type and screen sharing status.

This function updates the layout parameters, such as the main height/width and item page limit, based on the current event type (e.g., broadcast, chat, conference) and the screen sharing status. It also invokes the reordering of streams if a screen change is detected.

Parameters

options

The options for managing screen changes

Example:

val parameters = object : OnScreenChangesParameters {
override val eventType = "conference"
override val shareScreenStarted = false
override val shared = false
override val addForBasic = false
override val updateMainHeightWidth = { value ->
}
override val updateAddForBasic = { value ->
}
override val itemPageLimit = 4
override val updateItemPageLimit = { value ->
}
override val reorderStreams = { options ->
}
override fun getUpdatedAllParams() = this
// ... other required implementations
}

val options = OnScreenChangesOptions(
changed = true,
parameters = parameters
)

onScreenChanges(options)