Class

ScreenSharingRequest

ScreenSharingRequest

Allows to accept or decline screen sharing requests made by an operator.

Methods

# accept() → {Promise}

Accept screen sharing request.

The visitor will be prompted to select a screen to share. Screen sharing will start immediately after screen is selected.

A Promise Fulfilled with an empty object or rejected with an Error. The Error may have one of the following causes:
  • `CANCEL` - when visitor cancels screen sharing during screen selection,
  • `INTERNAL_ERROR` - in the case of internal error
Promise

# decline() → {undefined}

Decline screen sharing request.
undefined