Learn how to promote a session to full device mode using the SDK, as per your requirements.
Managing full device state from the SDKs
In some situations it is useful to be able to switch a Cobrowse session into full device mode using the SDK. For example, if you would like sessions to default to full device mode, or enforce full device mode is always (or never) used. We provide an API for doing this:
// note: you must have implmented the CobrowseIODelegate
- (void)cobrowseSessionDidLoad:(CBIOSession *)session {
// ensure the screen share session is always in full device
[session setFullDevice:YES callback: null];
}
// note: you must have implmented CobrowseIO.SessionLoadDelegate@OverridepublicvoidsessionDidLoad(@NonNullSession session) {session.setFullDevice(true,null);}
CobrowseIO.addListener('session.loaded', session => {console.log('A session was loaded', session)awaitsession.setFullDevice(true)})
CobrowseIO.instance.sessionDidLoad.listen((session) {try {await session.setFullDevice(FullDeviceState.on); } onPlatformExceptioncatch (e) {// E.g. a network errorlog('Cannot update the full device state: ${e.message}'); }});
CobrowseIO.Instance.SessionDidLoad+= (sender, session) =>{ session.SetFullDeviceState(FullDeviceState.On, (err, session) => {if (err !=null) {// E.g. a network error }else {// Full device mode is activated } });};
Controlling full device state from the Agent SDK
You may also set the full device state using the Agent SDK. See the Agent SDK API Reference for more details.