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:
// You must have implmented the CobrowseIODelegate
func cobrowseSessionDidLoad(_ session: CBIOSession) {
session.setFullDevice(.requested)
}
Objective-C
// You must have implmented the CobrowseIODelegate
- (void)cobrowseSessionDidLoad:(CBIOSession *)session {
[session setFullDevice: CBIOFullDeviceStateRequested callback:nil];
}
// note: you must have implmented CobrowseIO.SessionLoadDelegate
@Override
public void sessionDidLoad(@NonNull Session session) {
session.setFullDevice(Session.FullDeviceState.Requested, null);
}