ControlManager class

Manager of objects which can control the behaviour of the device.

Signature:

export declare class ControlManager extends ExternalObject 

Extends: ExternalObject

Remarks

Use Runtime.getControlManager() to get an instance of this class.

Methods

MethodModifiersDescription
dualCameraSupported()Check if the device is able to show the front and rear camera at the same time
getFullScreenRecorder()Get the full screen recorder object in a state that's ready to record

ControlManager.dualCameraSupported() method

Check if the device is able to show the front and rear camera at the same time

Signature:

dualCameraSupported(): Promise<boolean>;

Returns:

Promise<boolean>

Remarks

You are able to turn both cameras on at once by adding 2 camera components (to a single layout - or to multiple different layouts) with different CameraTypes configured. However if the device doesn't support this the second CameraType will be ignored and you'll see the same camera feed in both components.

ControlManager.getFullScreenRecorder() method

Get the full screen recorder object in a state that's ready to record

Signature:

getFullScreenRecorder(): Promise<FullScreenRecorder>;

Returns:

Promise<FullScreenRecorder>

Remarks

This call can take more than half a second to run, try to perform this operation behind the scenes