Method Summary
|
createPowerControlInstance
(
|
This method creates a power control instance that allows an application to do power management. |
|
factoryReset
(
|
Perform factory reset. Which parts of the persistent storage that is reset to factory state is dependent on which flags that are given to the function call. After the reset is perform, the STB will reboot to ensure that it boots up in a factory reset state. |
| getPowerControllerInfo ( ) → Array.<ToiPowerControl.ToiPowerControllerInfo> |
Returns information of available power controller. |
|
reboot
(
|
Reboot the platform. |
Inherited Methods
|
addEventListener
(
|
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners. |
|
removeEventListener
(
|
This method removes an event listener for a specific event. |
Type Definitions
|
The reboot type indicates when to reboot the STB. |
|
|
The reset flag indicates which parts of the STB that shall be reset when a factory reset is performed. |
|
Methods
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to subscribe to.
listenerToiEventListener The JavaScript function that will receive events.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the application calls addEventListener with the same combination of type and listener twice.
This method creates a power control instance that allows an application to do power management.
Parameters:
-
Name Type Description accessToiPowerControl.ToiPowerProfileAccess Determines if the registering application wants to be able to have access to initiate power profile switches.
Throws:
-
ToiInvalidArgumentException Raised if the specified application identifier is invalid.
ToiPermissionDeniedException Raised if an application tries to register for control possibility when the maximum number of applications already has registered for control possibility.
Returns:
-
Type: ToiPowerControl
Address to an ToiPowerControl interface.
Perform factory reset. Which parts of the persistent storage that is reset to factory state is dependent on which flags that are given to the function call. After the reset is perform, the STB will reboot to ensure that it boots up in a factory reset state.
See also:
Parameters:
-
Name Type Description flagsnumber Flags indicating which parts to reset.
Throws:
-
ToiOperationNotSupportedException Raised if some error occurred.
Returns information of available power controller.
Technical Preview:
- This method is a TECHNICAL PREVIEW, it may change.
Returns:
-
Type: Array.<ToiPowerControl.ToiPowerControllerInfo>
A sequence of power controller information.
Reboot the platform.
Note:
- This method can also be accessed using the alias rebootAtNextStandby(), which is equal to Reboot(REBOOT_TYPE_AT_NEXT_STANDBY). The alias will be removed in TOI/JS version 3.2.
Parameters:
-
Name Type Description rebootTypeToiPlatformService.ToiRebootType What type of reboot that should take place.
This method removes an event listener for a specific event.
Inherited From:
Parameters:
-
Name Type Description typenumber The event type of the event to remove the listener from.
listenerToiEventListener The JavaScript function that was previously added as an event listener.
Throws:
-
ToiInvalidArgumentException Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the listener has not previously been added.
Members
This is an Event identifier for ToiPlatformPowerControllerStatusChangedEvent.
Called when an application has registered or released for power control.
Perform a full factory reset.
Reboot the platform the next time the system goes from active to standby state. This is used for starting a new boot image in a way that is less disturbing to the end user. Note that ToiInformationService.CFG_STANDBY_ALLOWREBOOT will be checked before box reboot in a standby state. Reboot will happen only when its value is TRUE.
Reboot the platform immediately in a controlled way. If fast boot is supported the fast boot flag is cleared only if there is an software update available. This is useful to force the usage of a new boot image after upgrade.
Empties the scheduler database.
Remove bootloader bypass.
Remove the channel database.
Technical Preview:
Remove all persistent cookies for SVG and HTML browsers.
Remove all persistent InformationService objects, including network, audio and video settings.
Remove all local web storage databases for SVG and HTML browsers.
Remove all storage data for secondary applications.
Reset RCU pairing.
Reset the TR-069 data model.