roDeviceInfoEvent
The roDeviceInfo component sends the roDeviceInfoEvent with the following predicates that indicate its valid event types:
Supported methods
isStatusMessage() as Boolean
Checks if the device status has changed. This method returns true if the device status has changed; otherwise, it returns false.
GetInfo() as Object
Checks the current status of the device. This method returns an roAssociativeArray containing one of the following members:
Member | Type | Description |
|---|---|---|
audioGuideEnabled | Boolean | True if the screen reader is enabled. The audioGuideEnabled event will only ever get fired if ifDeviceInfo.EnableAudioGuideChangedEvent(true) called before entering the message loop |
exitedScreensaver | Boolean | True if the screensaver was exited. The exitedScreensaver event will only ever get fired if ifDeviceInfo.EnableScreensaverExitedEvent(true) is called before entering the message loop |
appFocused | Boolean | It is set to False when the System Overlay takes focus and True when the app regains focus |
linkStatus | Boolean | True if the device currently seems to have an active network connection. The linkStatus event will only ever get fired if ifDeviceInfo.EnableLinkStatusEvent(true) is called before entering the message loop |
generalMemoryLevel | String | Fires notifications to the app about memory levels. This event will be sent first when the OS transitions from "normal" to "low" state and will continue to be sent while in "low" or "critical" states.
|
audioCodecCapabilityChanged | Boolean | The audio codec capability has changed if true. If your application receives this event, you can check the current audio playback capability using the |
videoCodecCapabilityChanged | Boolean | The video codec capability has changed if true. If your application receives this event, you can check the current video playback capability using the |
isCaptionModeChanged() as Boolean
Indicates whether the user has changed the closed caption mode or track. This method returns true if the caption mode changed; otherwise, it returns false.
Call the GetInfo() method to get the caption mode.
GetInfo() as Object
Indicates the current global setting for the Mode property, which may be one of the following values:
- "On"
- "Off"
- "Instant replay"
- "When mute" (Only returned for a TV; this option is not available on STBs).
EnableValidClockEvent(enable as Boolean)
Indicates whether the RokuOS has successfully connected to the network and contacted the timeserver in order to set the device's clock. Call the GetInfo() method to confirm that the system clock is valid.
GetInfo() as Object
This method returns an roAssociativeArray containing a validClock field that indicates whether the system clock is valid.
| Member | Type | Description |
|---|---|---|
| validClock | Boolean | True if the system clock is valid. |
Updated 3 months ago
