checkScreenShare

Checks and manages screen sharing status, initiating or stopping screen share actions based on conditions.

This function verifies whether screen sharing is currently active. If sharing is active, it attempts to stop the screen share unless the whiteboard is active, in which case an alert is shown. If not sharing, it initiates screen share unless a breakout room or whiteboard is active, with alerts as needed.

Parameters

options

The options containing parameters for managing screen sharing

Example:

val options = CheckScreenShareOptions(
parameters = object : CheckScreenShareParameters {
override val shared = true
override val whiteboardStarted = false
override val whiteboardEnded = true
override val breakOutRoomStarted = false
override val breakOutRoomEnded = true
override val showAlert = { message, type, duration ->
}
override val stopShareScreen = { opts ->
}
override val requestScreenShare = { opts ->
}
// ... other required implementations
}
)

checkScreenShare(options)