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:See
startScreenShare().See
stopScreenShare().