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. |
| getDatabases ( ) |
Get information of the system's databases. Each entry indicates the outcome of the last attempt to open the database. Restarting the system will void previous status. |
| 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
- DATABASE_FLAG_CREATED_NOW
- DATABASE_FLAG_FAILED
- DATABASE_FLAG_OK
- DATABASE_FLAG_RESTORED_FROM_BACKUP
- DATABASE_FLAG_RESTORED_FROM_BACKUP_NOW
Technical Preview:
- This enumerator is a TECHNICAL PREVIEW, it may change.
Technical Preview:
- This enumerator is a TECHNICAL PREVIEW, it may change.
Technical Preview:
- This typedef is a TECHNICAL PREVIEW, it may change.
|
The state describing a dynamic component. |
|
|
The different outcomes when a database is opened. DATABASE_FLAG_OK and DATABASE_FLAG_FAILED are mutually exclusive. When DATABASE_FLAG_OK is set, other flags can be checked for more detailed database information. |
|
|
|
|
|
Enumeration of the system's databases. |
|
|
|
|
|
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. |
|
|
Type representing time in seconds since the Unix epoch (1970-01-01 00:00:00). |
|
|
|
|
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.
Get information of the system's databases. Each entry indicates the outcome of the last attempt to open the database. Restarting the system will void previous status.
Technical Preview:
- This method is a TECHNICAL PREVIEW, it may change.
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.
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.
The dynamic component is active and ready for use.
The dynamic component is inactive with no resources allocated.
The dynamic component has been activated and is allocating its initial resources but is not yet ready for use.
The dynamic component has been deactivated and is releasing its resources and is not yet ready to be activated again.
A new, empty database was created at the most recent startup. Either the database did not exist, or was corrupt and no backup could be restored.
The database did not exist or was corrupt. No backup could be restored nor could a new database be created.
The database was opened without problems.
The database was previously restored from a backup.
The database was corrupt and a backup was automatically restored at the most recent startup.
The asset manager database.
A custom/product specific database.
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.
Reformat the internal HDD.
Empties the scheduler database.
Technical Preview:
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.
Information about a platform component.
Struct fields
| Name | Description |
|---|---|
| isDynamic | A flag set to true if the component is dynamic. Type: boolean |
| name | The component name. Type: string |
| state | The current component state. Type: ToiPlatformService.ToiComponentState |
Status report for a specific database.
Technical Preview:
Struct fields
| Name | Description |
|---|---|
| creationTime | When a database is restored from backup, i.e. when Flags include ToiPlatformService.DATABASE_FLAG_RESTORED_FROM_BACKUP, the creation time indicates the last modification time of the backup file. In all other cases the time the database file was created. Type: ToiPlatformService.ToiTime |
| flags | Flags indicating the resulting state after opening the database. ToiPlatformService.ToiDatabaseFlag defines the allowed values. Type: number |
| name | Database name. Type: string |
| type | The database type. Type: ToiPlatformService.ToiDatabaseType |
| version | The version of the database currently open. Type: string |