ScreenShareContext
provides the methods that can be called by your app for screen sharing.
abstract fun setScreenShareState(sharing: Boolean)
Starts or stops screen sharing.
Parameter | Description |
---|---|
sharing |
Whether to start screen sharing. |
abstract fun renderScreenShare(container: ViewGroup?, streamUuid: String)
Starts or stops rendering the screen-sharing stream.
Parameter | Description |
---|---|
container |
The video container. Setting viewGroup as null means stopping rendering the video stream. |
streamUuid |
The stream ID. |
IScreenShareHandler
reports screen-sharing-related event callbacks to your app.
fun onScreenShareStateUpdated(state: EduContextScreenShareState, streamUuid: String)
Occurs when the state of screen sharing changes.
Parameter | Description |
---|---|
state |
The state of screen sharing. See EduContextScreenShareState for details. |
streamUuid |
The stream ID. |
fun onScreenShareTip(tips: String)
Displays tips related to screen sharing.
There are the following tips:
Parameter | Description |
---|---|
tips |
The tip. |