KeyControl¶
The KeyControl capability serves to define the methods required for normalizing common key commands (up, down, left right, ok, back, home, key code).
Methods¶
- keyControl.up ()
Sends the up button key code to the TV.
Related capabilities:
KeyControl.Up
Returns: Command
- keyControl.down ()
Sends the down button key code to the TV.
Related capabilities:
KeyControl.Down
Returns: Command
- keyControl.left ()
Sends the left button key code to the TV.
Related capabilities:
KeyControl.Left
Returns: Command
- keyControl.right ()
Sends the right button key code to the TV.
Related capabilities:
KeyControl.Right
Returns: Command
- keyControl.ok ()
Sends the OK button key code to the TV.
Related capabilities:
KeyControl.OK
Returns: Command
- keyControl.back ()
Sends the back button key code to the TV.
Related capabilities:
KeyControl.Back
Returns: Command
- keyControl.home ()
Sends the home button key code to the TV.
Related capabilities:
KeyControl.Home
Returns: Command
- keyControl.sendKeyCode (keyCode)
Sends a key code value to the TV.
Related capabilities:
KeyControl.Send.KeyCode
Parameters:
- keyCode (number) – Refer to the native Connect SDK device services for a list of keycodes
Returns: Command