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:Callback for the
nonfatal-error event with type 'screen-share-error'.Callback for the
local-screen-share-started event.Callback for the
local-screen-share-stopped event.Return value
An object with the following properties:Indicates whether the local user is sharing a screen.
Array of screen share objects.
See
startScreenShare().See
stopScreenShare().