Managing full device mode

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:

await session.setFullDevice('requested')

See this in action: https://github.com/cobrowseio/cobrowse-sdk-js-examples#full-device-mode-by-default.

These APIs can be used in combination with our various delegate APIs to switch the session in and out of full device mode as your use case requires.

For example, to request full device is used by default, you can set the full device state when the session is first loaded by the SDK:

CobrowseIO.on('session.loaded', session => session.setFullDevice('requested')) 

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.

Last updated