ifRemoteInfo
Implemented by
| Name | Description |
|---|---|
| roRemoteInfo | The roRemoteInfo component provides an interface to obtain attributes about the Roku remote control that is currently connected to the Roku device. Note that a Roku remote control device that is paired with a device, may not be the one that is currently connected (a single remote is typically connected to a device at a time). |
Supported methods
GetModel(remoteIndex as Integer) as Integer
Returns the model number of the specified Roku remote control. For example, this function returns 135 for an RC135 remote that is connected to the Roku device.
Parameters
| Name | Type | Description |
|---|---|---|
| remoteIndex | Integer | The index for a Roku remote control that is currently connected to the Roku device. In addition to specific remote index, the following values may be specified:
|
Return Values
The model number of the specified Roku remote control, or 0 if the specified remote does not exist.
IsAwake(remoteIndex as Integer) as Boolean
Checks whether the specified Roku remote control is awake.
Parameters
| Name | Type | Description |
|---|---|---|
| remoteIndex | Integer | The index for a Roku remote control that is currently connected to the Roku device. In addition to specific remote index, the following values may be specified:
|
Return Values
A flag indicating whether the specified Roku remote control is awake.
HasFeature(feature as String, remoteIndex as Integer) as Boolean
Description
Checks if the specified Roku remote control supports the passed in feature string.
Parameters
| Name | Type | Description |
|---|---|---|
| feature | String | The feature to be checked, which may be one of the following values:
|
| remoteIndex | Integer | The index for a Roku remote control that is currently connected to the Roku device. In addition to specific remote index, the following values may be specified:
|
Return Values
A flag indicating whether the Roku remote control supports the passed in feature string.
Updated 3 months ago
