Skip to main content
useScreenShare(params?): Object useScreenShare can also be used to set up optional callbacks for the local-screen-share-started and local-screen-share-stopped events.

Parameters (optional)

An object with the following properties:
onLocalScreenShareStarted
Function
Callback for the local-screen-share-started event.
onLocalScreenShareStopped
Function
Callback for the local-screen-share-stopped event.

Return value

An object with the following properties:
isSharingScreen
boolean
Indicates whether the local user is sharing a screen.
screens
Array
Array of screen share objects.
startScreenShare
Function
stopScreenShare
Function

Example

See also