remoteControl
The sos.management.remoteControl
groups together methods for enabling or disabling control of the device using IR remote controller (TV controller).
Methods
disable()
The disable()
method disables remote control.
disable(): Promise<void>;
Example
await sos.management.remoteControl.disable();
enable()
The enable()
method enables remote control.
Android: In order to prevent Android from displaying Android homepage and thus not showing your content, you must Enable Kiosk Mode (or Lock Remote Control) either through Box device settings or through API.
Always set the Remote Control Lock to enable
after the deployment.
enable(): Promise<void>;
Example
await sos.management.remoteControl.enable();
isEnabled()
The isEnabled()
method returns whether the remote control is enabled.
isEnabled(): Promise<boolean>;
Example
const enabled = await sos.management.remoteControl.isEnabled();
isLocked()
The isLocked()
method returns whether the remote control is locked (disabled).
isLocked(): Promise<boolean>;
Example
const locked = await sos.management.remoteControl.isLocked();
lock()
The lock()
method is an alias for the disable()
method.
lock(): Promise<void>;
Example
await sos.management.remoteControl.lock();
unlock()
The unlock()
method is an alias for the enable()
method.
unlock(): Promise<void>;
Example
await sos.management.remoteControl.unlock();