Package io.cobrowse
Interface CobrowseIO.FullDeviceRequestDelegate
- All Superinterfaces:
CobrowseIO.Delegate,Session.Listener
- Enclosing class:
- CobrowseIO
Implement this interface on your delegate to implement your own logic for handling
full device requests. You can show your own UI for user consent, either allowing
or rejecting the full device request based on the user's response.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleFullDeviceRequest(android.app.Activity activity, Session session) Called when an agent requests full device screensharing.Methods inherited from interface io.cobrowse.Session.Listener
sessionDidEnd, sessionDidUpdate
-
Method Details
-
handleFullDeviceRequest
Called when an agent requests full device screensharing. This allows you to implement your own confirmation UI. If implemented, you are responsible to invokeSession.setFullDeviceState(Session.FullDeviceState, Callback)with eitherSession.FullDeviceState.OnorSession.FullDeviceState.Rejected.- Parameters:
activity- The currently activeActivity.session- The currently activeSession.
-