Enum AndroidKey

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AndroidKey>

    public enum AndroidKey
    extends java.lang.Enum<AndroidKey>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      A
      Key code constant: 'A' key.
      ALT_LEFT
      Key code constant: Left Alt modifier key.
      ALT_RIGHT
      Key code constant: Right Alt modifier key.
      APOSTROPHE
      Key code constant: ''' (apostrophe) key.
      APP_SWITCH
      Key code constant: App switch key.
      ASSIST
      Key code constant: Assist key.
      AT
      Key code constant: '@' key.
      AVR_INPUT
      Key code constant: A/V Receiver input key.
      AVR_POWER
      Key code constant: A/V Receiver power key.
      B
      Key code constant: 'B' key.
      BACK
      Key code constant: Back key.
      BACKSLASH
      Key code constant: '\' key.
      BOOKMARK
      Key code constant: Bookmark key.
      BREAK
      Key code constant: Break / Pause key.
      BRIGHTNESS_DOWN
      Key code constant: Brightness Down key.
      BRIGHTNESS_UP
      Key code constant: Brightness Up key.
      BUTTON_1
      Key code constant: Generic Game Pad Button #1.
      BUTTON_10
      Key code constant: Generic Game Pad Button #10.
      BUTTON_11
      Key code constant: Generic Game Pad Button #11.
      BUTTON_12
      Key code constant: Generic Game Pad Button #12.
      BUTTON_13
      Key code constant: Generic Game Pad Button #13.
      BUTTON_14
      Key code constant: Generic Game Pad Button #14.
      BUTTON_15
      Key code constant: Generic Game Pad Button #15.
      BUTTON_16
      Key code constant: Generic Game Pad Button #16.
      BUTTON_2
      Key code constant: Generic Game Pad Button #2.
      BUTTON_3
      Key code constant: Generic Game Pad Button #3.
      BUTTON_4
      Key code constant: Generic Game Pad Button #4.
      BUTTON_5
      Key code constant: Generic Game Pad Button #5.
      BUTTON_6
      Key code constant: Generic Game Pad Button #6.
      BUTTON_7
      Key code constant: Generic Game Pad Button #7.
      BUTTON_8
      Key code constant: Generic Game Pad Button #8.
      BUTTON_9
      Key code constant: Generic Game Pad Button #9.
      BUTTON_A
      Key code constant: A Button key.
      BUTTON_B
      Key code constant: B Button key.
      BUTTON_C
      Key code constant: C Button key.
      BUTTON_L1
      Key code constant: L1 Button key.
      BUTTON_L2
      Key code constant: L2 Button key.
      BUTTON_MODE
      Key code constant: Mode Button key.
      BUTTON_R1
      Key code constant: R1 Button key.
      BUTTON_R2
      Key code constant: R2 Button key.
      BUTTON_SELECT
      Key code constant: Select Button key.
      BUTTON_START
      Key code constant: Start Button key.
      BUTTON_THUMBL
      Key code constant: Left Thumb Button key.
      BUTTON_THUMBR
      Key code constant: Right Thumb Button key.
      BUTTON_X
      Key code constant: X Button key.
      BUTTON_Y
      Key code constant: Y Button key.
      BUTTON_Z
      Key code constant: Z Button key.
      C
      Key code constant: 'C' key.
      CALCULATOR
      Key code constant: Calculator special function key.
      CALENDAR
      Key code constant: Calendar special function key.
      CALL
      Key code constant: Call key.
      CAMERA
      Key code constant: Camera key.
      CAPS_LOCK
      Key code constant: Caps Lock key.
      CAPTIONS
      Key code constant: Toggle captions key.
      CHANNEL_DOWN
      Key code constant: Channel down key.
      CHANNEL_UP
      Key code constant: Channel up key.
      CLEAR
      Key code constant: Clear key.
      COMMA
      Key code constant: ',' key.
      CONTACTS
      Key code constant: Contacts special function key.
      COPY
      Key code constant: Copy key.
      CTRL_LEFT
      Key code constant: Left Control modifier key.
      CTRL_RIGHT
      Key code constant: Right Control modifier key.
      CUT
      Key code constant: Cut key.
      D
      Key code constant: 'D' key.
      DEL
      Key code constant: Backspace key.
      DIGIT_0
      Key code constant: '0' key.
      DIGIT_1
      Key code constant: '1' key.
      DIGIT_2
      Key code constant: '2' key.
      DIGIT_3
      Key code constant: '3' key.
      DIGIT_4
      Key code constant: '4' key.
      DIGIT_5
      Key code constant: '5' key.
      DIGIT_6
      Key code constant: '6' key.
      DIGIT_7
      Key code constant: '7' key.
      DIGIT_8
      Key code constant: '8' key.
      DIGIT_9
      Key code constant: '9' key.
      DPAD_CENTER
      Key code constant: Directional Pad Center key.
      DPAD_DOWN
      Key code constant: Directional Pad Down key.
      DPAD_DOWN_LEFT
      Key code constant: Directional Pad Down-Left.
      DPAD_DOWN_RIGHT
      Key code constant: Directional Pad Down-Right.
      DPAD_LEFT
      Key code constant: Directional Pad Left key.
      DPAD_RIGHT
      Key code constant: Directional Pad Right key.
      DPAD_UP
      Key code constant: Directional Pad Up key.
      DPAD_UP_LEFT
      Key code constant: Directional Pad Up-Left.
      DPAD_UP_RIGHT
      Key code constant: Directional Pad Up-Right.
      DVR
      Key code constant: DVR key.
      E
      Key code constant: 'E' key.
      EISU
      Key code constant: Japanese alphanumeric key.
      ENDCALL
      Key code constant: End Call key.
      ENTER
      Key code constant: Enter key.
      ENVELOPE
      Key code constant: Envelope special function key.
      EQUALS
      Key code constant: '=' key.
      ESCAPE
      Key code constant: Escape key.
      EXPLORER
      Key code constant: Explorer special function key.
      F
      Key code constant: 'F' key.
      F1
      Key code constant: F1 key.
      F10
      Key code constant: F10 key.
      F11
      Key code constant: F11 key.
      F12
      Key code constant: F12 key.
      F2
      Key code constant: F2 key.
      F3
      Key code constant: F3 key.
      F4
      Key code constant: F4 key.
      F5
      Key code constant: F5 key.
      F6
      Key code constant: F6 key.
      F7
      Key code constant: F7 key.
      F8
      Key code constant: F8 key.
      F9
      Key code constant: F9 key.
      FOCUS
      Key code constant: Camera Focus key.
      FORWARD
      Key code constant: Forward key.
      FORWARD_DEL
      Key code constant: Forward Delete key.
      FUNCTION
      Key code constant: Function modifier key.
      G
      Key code constant: 'G' key.
      GRAVE
      Key code constant: '`' (backtick) key.
      GUIDE
      Key code constant: Guide key.
      H
      Key code constant: 'H' key.
      HEADSETHOOK
      Key code constant: Headset Hook key.
      HELP
      Key code constant: Help key.
      HENKAN
      Key code constant: Japanese conversion key.
      HOME
      Key code constant: Home key.
      I
      Key code constant: 'I' key.
      INFO
      Key code constant: Info key.
      INSERT
      Key code constant: Insert key.
      J
      Key code constant: 'J' key.
      K
      Key code constant: 'K' key.
      KANA
      Key code constant: Japanese kana key.
      KATAKANA_HIRAGANA
      Key code constant: Japanese katakana / hiragana key.
      KEY_11
      Key code constant: '11' key.
      KEY_12
      Key code constant: '12' key.
      KEYCODE_ZOOM_IN
      Key code constant: Zoom in key.
      KEYCODE_ZOOM_OUT
      Key code constant: Zoom out key.
      L
      Key code constant: 'L' key.
      LANGUAGE_SWITCH
      Key code constant: Language Switch key.
      LAST_CHANNEL
      Key code constant: Last Channel key.
      LEFT_BRACKET
      Key code constant: '[' key.
      M
      Key code constant: 'M' key.
      MANNER_MODE
      Key code constant: Manner Mode key.
      MEDIA_AUDIO_TRACK
      Key code constant: Audio Track key.
      MEDIA_CLOSE
      Key code constant: Close media key.
      MEDIA_EJECT
      Key code constant: Eject media key.
      MEDIA_FAST_FORWARD
      Key code constant: Fast Forward media key.
      MEDIA_NEXT
      Key code constant: Play Next media key.
      MEDIA_PAUSE
      Key code constant: Pause media key.
      MEDIA_PLAY
      Key code constant: Play media key.
      MEDIA_PLAY_PAUSE
      Key code constant: Play/Pause media key.
      MEDIA_PREVIOUS
      Key code constant: Play Previous media key.
      MEDIA_RECORD
      Key code constant: Record media key.
      MEDIA_REWIND
      Key code constant: Rewind media key.
      MEDIA_SKIP_BACKWARD
      Key code constant: Skip backward media key.
      MEDIA_SKIP_FORWARD
      Key code constant: Skip forward media key.
      MEDIA_STEP_BACKWARD
      Key code constant: Step backward media key.
      MEDIA_STEP_FORWARD
      Key code constant: Step forward media key.
      MEDIA_STOP
      Key code constant: Stop media key.
      MEDIA_TOP_MENU
      Key code constant: Media Top Menu key.
      MENU
      Key code constant: Menu key.
      META_LEFT
      Key code constant: Left Meta modifier key.
      META_RIGHT
      Key code constant: Right Meta modifier key.
      MINUS
      Key code constant: '-'.
      MODE_3D
      Key code constant: 3D Mode key.
      MOVE_END
      Key code constant: End Movement key.
      MOVE_HOME
      Key code constant: Home Movement key.
      MUHENKAN
      Key code constant: Japanese non-conversion key.
      MUSIC
      Key code constant: Music special function key.
      MUTE
      Key code constant: Mute key.
      N
      Key code constant: 'N' key.
      NAVIGATE_IN
      Key code constant: Navigate in key.
      NAVIGATE_NEXT
      Key code constant: Navigate to next key.
      NAVIGATE_OUT
      Key code constant: Navigate out key.
      NAVIGATE_PREVIOUS
      Key code constant: Navigate to previous key.
      NOTIFICATION
      Key code constant: Notification key.
      NUM
      Key code constant: Number modifier key.
      NUM_LOCK
      Key code constant: Num Lock key.
      NUMPAD_0
      Key code constant: Numeric keypad '0' key.
      NUMPAD_1
      Key code constant: Numeric keypad '1' key.
      NUMPAD_2
      Key code constant: Numeric keypad '2' key.
      NUMPAD_3
      Key code constant: Numeric keypad '3' key.
      NUMPAD_4
      Key code constant: Numeric keypad '4' key.
      NUMPAD_5
      Key code constant: Numeric keypad '5' key.
      NUMPAD_6
      Key code constant: Numeric keypad '6' key.
      NUMPAD_7
      Key code constant: Numeric keypad '7' key.
      NUMPAD_8
      Key code constant: Numeric keypad '8' key.
      NUMPAD_9
      Key code constant: Numeric keypad '9' key.
      NUMPAD_ADD
      Key code constant: Numeric keypad '+' key (for addition).
      NUMPAD_COMMA
      Key code constant: Numeric keypad ',' key (for decimals or digit grouping).
      NUMPAD_DIVIDE
      Key code constant: Numeric keypad '/' key (for division).
      NUMPAD_DOT
      Key code constant: Numeric keypad '.' key (for decimals or digit grouping).
      NUMPAD_ENTER
      Key code constant: Numeric keypad Enter key.
      NUMPAD_EQUALS
      Key code constant: Numeric keypad '=' key.
      NUMPAD_LEFT_PAREN
      Key code constant: Numeric keypad '(' key.
      NUMPAD_MULTIPLY
      Key code constant: Numeric keypad '*' key (for multiplication).
      NUMPAD_RIGHT_PAREN
      Key code constant: Numeric keypad ')' key.
      NUMPAD_SUBTRACT
      Key code constant: Numeric keypad '-' key (for subtraction).
      O
      Key code constant: 'O' key.
      P
      Key code constant: 'P' key.
      PAGE_DOWN
      Key code constant: Page Down key.
      PAGE_UP
      Key code constant: Page Up key.
      PAIRING
      Key code constant: Pairing key.
      PASTE
      Key code constant: Paste key.
      PERIOD
      Key code constant: '.' key.
      PICTSYMBOLS
      Key code constant: Picture Symbols modifier key.
      PLUS
      Key code constant: '+' key.
      POUND
      Key code constant: '#' key.
      POWER
      Key code constant: Power key.
      PROG_BLUE
      Key code constant: Blue "programmable" key.
      PROG_GREEN
      Key code constant: Green "programmable" key.
      PROG_RED
      Key code constant: Red "programmable" key.
      PROG_YELLOW
      Key code constant: Yellow "programmable" key.
      Q
      Key code constant: 'Q' key.
      R
      Key code constant: 'R' key.
      RIGHT_BRACKET
      Key code constant: ']' key.
      RO
      Key code constant: Japanese Ro key.
      S
      Key code constant: 'S' key.
      SCROLL_LOCK
      Key code constant: Scroll Lock key.
      SEARCH
      Key code constant: Search key.
      SEMICOLON
      Key code constant: ';' key.
      SETTINGS
      Key code constant: Settings key.
      SHIFT_LEFT
      Key code constant: Left Shift modifier key.
      SHIFT_RIGHT
      Key code constant: Right Shift modifier key.
      SLASH
      Key code constant: '/' key.
      SLEEP
      Key code constant: Sleep key.
      SOFT_LEFT
      Key code constant: Soft Left key.
      SOFT_RIGHT
      Key code constant: Soft Right key.
      SOFT_SLEEP
      Key code constant: put device to sleep unless a wakelock is held.
      SPACE
      Key code constant: Space key.
      STAR
      Key code constant: '*' key.
      STB_INPUT
      Key code constant: Set-top-box input key.
      STB_POWER
      Key code constant: Set-top-box power key.
      STEM_1
      Key code constant: Generic stem key 1 for Wear.
      STEM_2
      Key code constant: Generic stem key 2 for Wear.
      STEM_3
      Key code constant: Generic stem key 3 for Wear.
      STEM_PRIMARY
      Key code constant: Primary stem key for Wear.
      SWITCH_CHARSET
      Key code constant: Switch Charset modifier key.
      SYM
      Key code constant: Symbol modifier key.
      SYSRQ
      Key code constant: System Request / Print Screen key.
      T
      Key code constant: 'T' key.
      TAB
      Key code constant: Tab key.
      TV
      Key code constant: TV key.
      TV_ANTENNA_CABLE
      Key code constant: Antenna/Cable key.
      TV_AUDIO_DESCRIPTION
      Key code constant: Audio description key.
      TV_AUDIO_DESCRIPTION_MIX_DOWN
      Key code constant: Audio description mixing volume down key.
      TV_AUDIO_DESCRIPTION_MIX_UP
      Key code constant: Audio description mixing volume up key.
      TV_CONTENTS_MENU
      Key code constant: Contents menu key.
      TV_DATA_SERVICE
      Key code constant: TV data service key.
      TV_INPUT
      Key code constant: TV input key.
      TV_INPUT_COMPONENT_1
      Key code constant: Component #1 key.
      TV_INPUT_COMPONENT_2
      Key code constant: Component #2 key.
      TV_INPUT_COMPOSITE_1
      Key code constant: Composite #1 key.
      TV_INPUT_COMPOSITE_2
      Key code constant: Composite #2 key.
      TV_INPUT_HDMI_1
      Key code constant: HDMI #1 key.
      TV_INPUT_HDMI_2
      Key code constant: HDMI #2 key.
      TV_INPUT_HDMI_3
      Key code constant: HDMI #3 key.
      TV_INPUT_HDMI_4
      Key code constant: HDMI #4 key.
      TV_INPUT_VGA_1
      Key code constant: VGA #1 key.
      TV_MEDIA_CONTEXT_MENU
      Key code constant: Media context menu key.
      TV_NETWORK
      Key code constant: Toggle Network key.
      TV_NUMBER_ENTRY
      Key code constant: Number entry key.
      TV_POWER
      Key code constant: TV power key.
      TV_RADIO_SERVICE
      Key code constant: Radio key.
      TV_SATELLITE
      Key code constant: Satellite key.
      TV_SATELLITE_BS
      Key code constant: BS key.
      TV_SATELLITE_CS
      Key code constant: CS key.
      TV_SATELLITE_SERVICE
      Key code constant: BS/CS key.
      TV_TELETEXT
      Key code constant: Teletext key.
      TV_TERRESTRIAL_ANALOG
      Key code constant: Analog Terrestrial key.
      TV_TERRESTRIAL_DIGITAL
      Key code constant: Digital Terrestrial key.
      TV_TIMER_PROGRAMMING
      Key code constant: Timer programming key.
      TV_ZOOM_MODE
      Key code constant: Zoom mode key.
      U
      Key code constant: 'U' key.
      UNKNOWN
      Key code constant: Unknown key code.
      V
      Key code constant: 'V' key.
      VOICE_ASSIST
      Key code constant: Voice Assist key.
      VOLUME_DOWN
      Key code constant: Volume Down key.
      VOLUME_MUTE
      Key code constant: Volume Mute key.
      VOLUME_UP
      Key code constant: Volume Up key.
      W
      Key code constant: 'W' key.
      WAKEUP
      Key code constant: Wakeup key.
      WINDOW
      Key code constant: Window key.
      X
      Key code constant: 'X' key.
      Y
      Key code constant: 'Y' key.
      YEN
      Key code constant: Japanese Yen key.
      Z
      Key code constant: 'Z' key.
      ZENKAKU_HANKAKU
      Key code constant: Japanese full-width / half-width key.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()  
      boolean isConfirmKey()
      Whether key will, by default, trigger a click on the focused view.
      boolean isGamepadButton()
      Returns true if the specified nativekey is a gamepad button.
      boolean isMediaKey()
      Whether this key is a media key, which can be send to apps that are interested in media key events.
      boolean isSystemKey()
      Is this a system key? System keys can not be used for menu shortcuts.
      boolean isWakeKey()
      Is it wake key or not.
      static AndroidKey valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AndroidKey[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • UNKNOWN

        public static final AndroidKey UNKNOWN
        Key code constant: Unknown key code.
      • SOFT_LEFT

        public static final AndroidKey SOFT_LEFT
        Key code constant: Soft Left key. Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom left of the display.
      • SOFT_RIGHT

        public static final AndroidKey SOFT_RIGHT
        Key code constant: Soft Right key. Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom right of the display.
      • HOME

        public static final AndroidKey HOME
        Key code constant: Home key. This key is handled by the framework and is never delivered to applications.
      • BACK

        public static final AndroidKey BACK
        Key code constant: Back key.
      • CALL

        public static final AndroidKey CALL
        Key code constant: Call key.
      • ENDCALL

        public static final AndroidKey ENDCALL
        Key code constant: End Call key.
      • DIGIT_0

        public static final AndroidKey DIGIT_0
        Key code constant: '0' key.
      • DIGIT_1

        public static final AndroidKey DIGIT_1
        Key code constant: '1' key.
      • DIGIT_2

        public static final AndroidKey DIGIT_2
        Key code constant: '2' key.
      • DIGIT_3

        public static final AndroidKey DIGIT_3
        Key code constant: '3' key.
      • DIGIT_4

        public static final AndroidKey DIGIT_4
        Key code constant: '4' key.
      • DIGIT_5

        public static final AndroidKey DIGIT_5
        Key code constant: '5' key.
      • DIGIT_6

        public static final AndroidKey DIGIT_6
        Key code constant: '6' key.
      • DIGIT_7

        public static final AndroidKey DIGIT_7
        Key code constant: '7' key.
      • DIGIT_8

        public static final AndroidKey DIGIT_8
        Key code constant: '8' key.
      • DIGIT_9

        public static final AndroidKey DIGIT_9
        Key code constant: '9' key.
      • STAR

        public static final AndroidKey STAR
        Key code constant: '*' key.
      • POUND

        public static final AndroidKey POUND
        Key code constant: '#' key.
      • DPAD_UP

        public static final AndroidKey DPAD_UP
        Key code constant: Directional Pad Up key. May also be synthesized from trackball motions.
      • DPAD_DOWN

        public static final AndroidKey DPAD_DOWN
        Key code constant: Directional Pad Down key. May also be synthesized from trackball motions.
      • DPAD_LEFT

        public static final AndroidKey DPAD_LEFT
        Key code constant: Directional Pad Left key. May also be synthesized from trackball motions.
      • DPAD_RIGHT

        public static final AndroidKey DPAD_RIGHT
        Key code constant: Directional Pad Right key. May also be synthesized from trackball motions.
      • DPAD_CENTER

        public static final AndroidKey DPAD_CENTER
        Key code constant: Directional Pad Center key. May also be synthesized from trackball motions.
      • VOLUME_UP

        public static final AndroidKey VOLUME_UP
        Key code constant: Volume Up key. Adjusts the speaker volume up.
      • VOLUME_DOWN

        public static final AndroidKey VOLUME_DOWN
        Key code constant: Volume Down key. Adjusts the speaker volume down.
      • POWER

        public static final AndroidKey POWER
        Key code constant: Power key.
      • CAMERA

        public static final AndroidKey CAMERA
        Key code constant: Camera key. Used to launch a camera application or take pictures.
      • CLEAR

        public static final AndroidKey CLEAR
        Key code constant: Clear key.
      • A

        public static final AndroidKey A
        Key code constant: 'A' key.
      • B

        public static final AndroidKey B
        Key code constant: 'B' key.
      • C

        public static final AndroidKey C
        Key code constant: 'C' key.
      • D

        public static final AndroidKey D
        Key code constant: 'D' key.
      • E

        public static final AndroidKey E
        Key code constant: 'E' key.
      • F

        public static final AndroidKey F
        Key code constant: 'F' key.
      • G

        public static final AndroidKey G
        Key code constant: 'G' key.
      • H

        public static final AndroidKey H
        Key code constant: 'H' key.
      • I

        public static final AndroidKey I
        Key code constant: 'I' key.
      • J

        public static final AndroidKey J
        Key code constant: 'J' key.
      • K

        public static final AndroidKey K
        Key code constant: 'K' key.
      • L

        public static final AndroidKey L
        Key code constant: 'L' key.
      • M

        public static final AndroidKey M
        Key code constant: 'M' key.
      • N

        public static final AndroidKey N
        Key code constant: 'N' key.
      • O

        public static final AndroidKey O
        Key code constant: 'O' key.
      • P

        public static final AndroidKey P
        Key code constant: 'P' key.
      • Q

        public static final AndroidKey Q
        Key code constant: 'Q' key.
      • R

        public static final AndroidKey R
        Key code constant: 'R' key.
      • S

        public static final AndroidKey S
        Key code constant: 'S' key.
      • T

        public static final AndroidKey T
        Key code constant: 'T' key.
      • U

        public static final AndroidKey U
        Key code constant: 'U' key.
      • V

        public static final AndroidKey V
        Key code constant: 'V' key.
      • W

        public static final AndroidKey W
        Key code constant: 'W' key.
      • X

        public static final AndroidKey X
        Key code constant: 'X' key.
      • Y

        public static final AndroidKey Y
        Key code constant: 'Y' key.
      • Z

        public static final AndroidKey Z
        Key code constant: 'Z' key.
      • COMMA

        public static final AndroidKey COMMA
        Key code constant: ',' key.
      • PERIOD

        public static final AndroidKey PERIOD
        Key code constant: '.' key.
      • ALT_LEFT

        public static final AndroidKey ALT_LEFT
        Key code constant: Left Alt modifier key.
      • ALT_RIGHT

        public static final AndroidKey ALT_RIGHT
        Key code constant: Right Alt modifier key.
      • SHIFT_LEFT

        public static final AndroidKey SHIFT_LEFT
        Key code constant: Left Shift modifier key.
      • SHIFT_RIGHT

        public static final AndroidKey SHIFT_RIGHT
        Key code constant: Right Shift modifier key.
      • TAB

        public static final AndroidKey TAB
        Key code constant: Tab key.
      • SPACE

        public static final AndroidKey SPACE
        Key code constant: Space key.
      • SYM

        public static final AndroidKey SYM
        Key code constant: Symbol modifier key. Used to enter alternate symbols.
      • EXPLORER

        public static final AndroidKey EXPLORER
        Key code constant: Explorer special function key. Used to launch a browser application.
      • ENVELOPE

        public static final AndroidKey ENVELOPE
        Key code constant: Envelope special function key. Used to launch a mail application.
      • ENTER

        public static final AndroidKey ENTER
        Key code constant: Enter key.
      • DEL

        public static final AndroidKey DEL
        Key code constant: Backspace key. Deletes characters before the insertion point, unlike FORWARD_DEL.
      • GRAVE

        public static final AndroidKey GRAVE
        Key code constant: '`' (backtick) key.
      • MINUS

        public static final AndroidKey MINUS
        Key code constant: '-'.
      • EQUALS

        public static final AndroidKey EQUALS
        Key code constant: '=' key.
      • LEFT_BRACKET

        public static final AndroidKey LEFT_BRACKET
        Key code constant: '[' key.
      • RIGHT_BRACKET

        public static final AndroidKey RIGHT_BRACKET
        Key code constant: ']' key.
      • BACKSLASH

        public static final AndroidKey BACKSLASH
        Key code constant: '\' key.
      • SEMICOLON

        public static final AndroidKey SEMICOLON
        Key code constant: ';' key.
      • APOSTROPHE

        public static final AndroidKey APOSTROPHE
        Key code constant: ''' (apostrophe) key.
      • SLASH

        public static final AndroidKey SLASH
        Key code constant: '/' key.
      • AT

        public static final AndroidKey AT
        Key code constant: '@' key.
      • NUM

        public static final AndroidKey NUM
        Key code constant: Number modifier key. Used to enter numeric symbols. This key is not Num Lock; it is more like ALT_LEFT and is interpreted as an ALT key
      • HEADSETHOOK

        public static final AndroidKey HEADSETHOOK
        Key code constant: Headset Hook key. Used to hang up calls and stop media.
      • FOCUS

        public static final AndroidKey FOCUS
        Key code constant: Camera Focus key. Used to focus the camera.
      • PLUS

        public static final AndroidKey PLUS
        Key code constant: '+' key.
      • MENU

        public static final AndroidKey MENU
        Key code constant: Menu key.
      • NOTIFICATION

        public static final AndroidKey NOTIFICATION
        Key code constant: Notification key.
      • SEARCH

        public static final AndroidKey SEARCH
        Key code constant: Search key.
      • MEDIA_PLAY_PAUSE

        public static final AndroidKey MEDIA_PLAY_PAUSE
        Key code constant: Play/Pause media key.
      • MEDIA_STOP

        public static final AndroidKey MEDIA_STOP
        Key code constant: Stop media key.
      • MEDIA_NEXT

        public static final AndroidKey MEDIA_NEXT
        Key code constant: Play Next media key.
      • MEDIA_PREVIOUS

        public static final AndroidKey MEDIA_PREVIOUS
        Key code constant: Play Previous media key.
      • MEDIA_REWIND

        public static final AndroidKey MEDIA_REWIND
        Key code constant: Rewind media key.
      • MEDIA_FAST_FORWARD

        public static final AndroidKey MEDIA_FAST_FORWARD
        Key code constant: Fast Forward media key.
      • MUTE

        public static final AndroidKey MUTE
        Key code constant: Mute key. Mutes the microphone, unlike VOLUME_MUTE.
      • PAGE_UP

        public static final AndroidKey PAGE_UP
        Key code constant: Page Up key.
      • PAGE_DOWN

        public static final AndroidKey PAGE_DOWN
        Key code constant: Page Down key.
      • PICTSYMBOLS

        public static final AndroidKey PICTSYMBOLS
        Key code constant: Picture Symbols modifier key. Used to switch symbol sets (Emoji, Kao-moji).
      • SWITCH_CHARSET

        public static final AndroidKey SWITCH_CHARSET
        Key code constant: Switch Charset modifier key. Used to switch character sets (Kanji, Katakana).
      • BUTTON_A

        public static final AndroidKey BUTTON_A
        Key code constant: A Button key. On a game controller, the A button should be either the button labeled A or the first button on the bottom row of controller buttons.
      • BUTTON_B

        public static final AndroidKey BUTTON_B
        Key code constant: B Button key. On a game controller, the B button should be either the button labeled B or the second button on the bottom row of controller buttons.
      • BUTTON_C

        public static final AndroidKey BUTTON_C
        Key code constant: C Button key. On a game controller, the C button should be either the button labeled C or the third button on the bottom row of controller buttons.
      • BUTTON_X

        public static final AndroidKey BUTTON_X
        Key code constant: X Button key. On a game controller, the X button should be either the button labeled X or the first button on the upper row of controller buttons.
      • BUTTON_Y

        public static final AndroidKey BUTTON_Y
        Key code constant: Y Button key. On a game controller, the Y button should be either the button labeled Y or the second button on the upper row of controller buttons.
      • BUTTON_Z

        public static final AndroidKey BUTTON_Z
        Key code constant: Z Button key. On a game controller, the Z button should be either the button labeled Z or the third button on the upper row of controller buttons.
      • BUTTON_L1

        public static final AndroidKey BUTTON_L1
        Key code constant: L1 Button key. On a game controller, the L1 button should be either the button labeled L1 (or L) or the top left trigger button.
      • BUTTON_R1

        public static final AndroidKey BUTTON_R1
        Key code constant: R1 Button key. On a game controller, the R1 button should be either the button labeled R1 (or R) or the top right trigger button.
      • BUTTON_L2

        public static final AndroidKey BUTTON_L2
        Key code constant: L2 Button key. On a game controller, the L2 button should be either the button labeled L2 or the bottom left trigger button.
      • BUTTON_R2

        public static final AndroidKey BUTTON_R2
        Key code constant: R2 Button key. On a game controller, the R2 button should be either the button labeled R2 or the bottom right trigger button.
      • BUTTON_THUMBL

        public static final AndroidKey BUTTON_THUMBL
        Key code constant: Left Thumb Button key. On a game controller, the left thumb button indicates that the left (or only) joystick is pressed.
      • BUTTON_THUMBR

        public static final AndroidKey BUTTON_THUMBR
        Key code constant: Right Thumb Button key. On a game controller, the right thumb button indicates that the right joystick is pressed.
      • BUTTON_START

        public static final AndroidKey BUTTON_START
        Key code constant: Start Button key. On a game controller, the button labeled Start.
      • BUTTON_SELECT

        public static final AndroidKey BUTTON_SELECT
        Key code constant: Select Button key. On a game controller, the button labeled Select.
      • BUTTON_MODE

        public static final AndroidKey BUTTON_MODE
        Key code constant: Mode Button key. On a game controller, the button labeled Mode.
      • ESCAPE

        public static final AndroidKey ESCAPE
        Key code constant: Escape key.
      • FORWARD_DEL

        public static final AndroidKey FORWARD_DEL
        Key code constant: Forward Delete key. Deletes characters ahead of the insertion point, unlike DEL.
      • CTRL_LEFT

        public static final AndroidKey CTRL_LEFT
        Key code constant: Left Control modifier key.
      • CTRL_RIGHT

        public static final AndroidKey CTRL_RIGHT
        Key code constant: Right Control modifier key.
      • CAPS_LOCK

        public static final AndroidKey CAPS_LOCK
        Key code constant: Caps Lock key.
      • SCROLL_LOCK

        public static final AndroidKey SCROLL_LOCK
        Key code constant: Scroll Lock key.
      • META_LEFT

        public static final AndroidKey META_LEFT
        Key code constant: Left Meta modifier key.
      • META_RIGHT

        public static final AndroidKey META_RIGHT
        Key code constant: Right Meta modifier key.
      • FUNCTION

        public static final AndroidKey FUNCTION
        Key code constant: Function modifier key.
      • SYSRQ

        public static final AndroidKey SYSRQ
        Key code constant: System Request / Print Screen key.
      • BREAK

        public static final AndroidKey BREAK
        Key code constant: Break / Pause key.
      • MOVE_HOME

        public static final AndroidKey MOVE_HOME
        Key code constant: Home Movement key. Used for scrolling or moving the cursor around to the start of a line or to the top of a list.
      • MOVE_END

        public static final AndroidKey MOVE_END
        Key code constant: End Movement key. Used for scrolling or moving the cursor around to the end of a line or to the bottom of a list.
      • INSERT

        public static final AndroidKey INSERT
        Key code constant: Insert key. Toggles insert / overwrite edit mode.
      • FORWARD

        public static final AndroidKey FORWARD
        Key code constant: Forward key. Navigates forward in the history stack. Complement of BACK.
      • MEDIA_PLAY

        public static final AndroidKey MEDIA_PLAY
        Key code constant: Play media key.
      • MEDIA_PAUSE

        public static final AndroidKey MEDIA_PAUSE
        Key code constant: Pause media key.
      • MEDIA_CLOSE

        public static final AndroidKey MEDIA_CLOSE
        Key code constant: Close media key. May be used to close a CD tray, for example.
      • MEDIA_EJECT

        public static final AndroidKey MEDIA_EJECT
        Key code constant: Eject media key. May be used to eject a CD tray, for example.
      • MEDIA_RECORD

        public static final AndroidKey MEDIA_RECORD
        Key code constant: Record media key.
      • F1

        public static final AndroidKey F1
        Key code constant: F1 key.
      • F2

        public static final AndroidKey F2
        Key code constant: F2 key.
      • F3

        public static final AndroidKey F3
        Key code constant: F3 key.
      • F4

        public static final AndroidKey F4
        Key code constant: F4 key.
      • F5

        public static final AndroidKey F5
        Key code constant: F5 key.
      • F6

        public static final AndroidKey F6
        Key code constant: F6 key.
      • F7

        public static final AndroidKey F7
        Key code constant: F7 key.
      • F8

        public static final AndroidKey F8
        Key code constant: F8 key.
      • F9

        public static final AndroidKey F9
        Key code constant: F9 key.
      • F10

        public static final AndroidKey F10
        Key code constant: F10 key.
      • F11

        public static final AndroidKey F11
        Key code constant: F11 key.
      • F12

        public static final AndroidKey F12
        Key code constant: F12 key.
      • NUM_LOCK

        public static final AndroidKey NUM_LOCK
        Key code constant: Num Lock key. This is the Num Lock key; it is different from NUM. This key alters the behavior of other keys on the numeric keypad.
      • NUMPAD_0

        public static final AndroidKey NUMPAD_0
        Key code constant: Numeric keypad '0' key.
      • NUMPAD_1

        public static final AndroidKey NUMPAD_1
        Key code constant: Numeric keypad '1' key.
      • NUMPAD_2

        public static final AndroidKey NUMPAD_2
        Key code constant: Numeric keypad '2' key.
      • NUMPAD_3

        public static final AndroidKey NUMPAD_3
        Key code constant: Numeric keypad '3' key.
      • NUMPAD_4

        public static final AndroidKey NUMPAD_4
        Key code constant: Numeric keypad '4' key.
      • NUMPAD_5

        public static final AndroidKey NUMPAD_5
        Key code constant: Numeric keypad '5' key.
      • NUMPAD_6

        public static final AndroidKey NUMPAD_6
        Key code constant: Numeric keypad '6' key.
      • NUMPAD_7

        public static final AndroidKey NUMPAD_7
        Key code constant: Numeric keypad '7' key.
      • NUMPAD_8

        public static final AndroidKey NUMPAD_8
        Key code constant: Numeric keypad '8' key.
      • NUMPAD_9

        public static final AndroidKey NUMPAD_9
        Key code constant: Numeric keypad '9' key.
      • NUMPAD_DIVIDE

        public static final AndroidKey NUMPAD_DIVIDE
        Key code constant: Numeric keypad '/' key (for division).
      • NUMPAD_MULTIPLY

        public static final AndroidKey NUMPAD_MULTIPLY
        Key code constant: Numeric keypad '*' key (for multiplication).
      • NUMPAD_SUBTRACT

        public static final AndroidKey NUMPAD_SUBTRACT
        Key code constant: Numeric keypad '-' key (for subtraction).
      • NUMPAD_ADD

        public static final AndroidKey NUMPAD_ADD
        Key code constant: Numeric keypad '+' key (for addition).
      • NUMPAD_DOT

        public static final AndroidKey NUMPAD_DOT
        Key code constant: Numeric keypad '.' key (for decimals or digit grouping).
      • NUMPAD_COMMA

        public static final AndroidKey NUMPAD_COMMA
        Key code constant: Numeric keypad ',' key (for decimals or digit grouping).
      • NUMPAD_ENTER

        public static final AndroidKey NUMPAD_ENTER
        Key code constant: Numeric keypad Enter key.
      • NUMPAD_EQUALS

        public static final AndroidKey NUMPAD_EQUALS
        Key code constant: Numeric keypad '=' key.
      • NUMPAD_LEFT_PAREN

        public static final AndroidKey NUMPAD_LEFT_PAREN
        Key code constant: Numeric keypad '(' key.
      • NUMPAD_RIGHT_PAREN

        public static final AndroidKey NUMPAD_RIGHT_PAREN
        Key code constant: Numeric keypad ')' key.
      • VOLUME_MUTE

        public static final AndroidKey VOLUME_MUTE
        Key code constant: Volume Mute key. Mutes the speaker, unlike MUTE. This key should normally be implemented as a toggle such that the first press mutes the speaker and the second press restores the original volume.
      • INFO

        public static final AndroidKey INFO
        Key code constant: Info key. Common on TV remotes to show additional information related to what is currently being viewed.
      • CHANNEL_UP

        public static final AndroidKey CHANNEL_UP
        Key code constant: Channel up key. On TV remotes, increments the television channel.
      • CHANNEL_DOWN

        public static final AndroidKey CHANNEL_DOWN
        Key code constant: Channel down key. On TV remotes, decrements the television channel.
      • KEYCODE_ZOOM_IN

        public static final AndroidKey KEYCODE_ZOOM_IN
        Key code constant: Zoom in key.
      • KEYCODE_ZOOM_OUT

        public static final AndroidKey KEYCODE_ZOOM_OUT
        Key code constant: Zoom out key.
      • TV

        public static final AndroidKey TV
        Key code constant: TV key. On TV remotes, switches to viewing live TV.
      • WINDOW

        public static final AndroidKey WINDOW
        Key code constant: Window key. On TV remotes, toggles picture-in-picture mode or other windowing functions.
      • GUIDE

        public static final AndroidKey GUIDE
        Key code constant: Guide key. On TV remotes, shows a programming guide.
      • DVR

        public static final AndroidKey DVR
        Key code constant: DVR key. On some TV remotes, switches to a DVR mode for recorded shows.
      • BOOKMARK

        public static final AndroidKey BOOKMARK
        Key code constant: Bookmark key. On some TV remotes, bookmarks content or web pages.
      • CAPTIONS

        public static final AndroidKey CAPTIONS
        Key code constant: Toggle captions key. Switches the mode for closed-captioning text, for example during television shows.
      • SETTINGS

        public static final AndroidKey SETTINGS
        Key code constant: Settings key. Starts the system settings activity.
      • TV_POWER

        public static final AndroidKey TV_POWER
        Key code constant: TV power key. On TV remotes, toggles the power on a television screen.
      • TV_INPUT

        public static final AndroidKey TV_INPUT
        Key code constant: TV input key. On TV remotes, switches the input on a television screen.
      • STB_POWER

        public static final AndroidKey STB_POWER
        Key code constant: Set-top-box power key. On TV remotes, toggles the power on an external Set-top-box.
      • STB_INPUT

        public static final AndroidKey STB_INPUT
        Key code constant: Set-top-box input key. On TV remotes, switches the input mode on an external Set-top-box.
      • AVR_POWER

        public static final AndroidKey AVR_POWER
        Key code constant: A/V Receiver power key. On TV remotes, toggles the power on an external A/V Receiver.
      • AVR_INPUT

        public static final AndroidKey AVR_INPUT
        Key code constant: A/V Receiver input key. On TV remotes, switches the input mode on an external A/V Receiver.
      • PROG_RED

        public static final AndroidKey PROG_RED
        Key code constant: Red "programmable" key. On TV remotes, acts as a contextual/programmable key.
      • PROG_GREEN

        public static final AndroidKey PROG_GREEN
        Key code constant: Green "programmable" key. On TV remotes, actsas a contextual/programmable key.
      • PROG_YELLOW

        public static final AndroidKey PROG_YELLOW
        Key code constant: Yellow "programmable" key. On TV remotes, acts as a contextual/programmable key.
      • PROG_BLUE

        public static final AndroidKey PROG_BLUE
        Key code constant: Blue "programmable" key. On TV remotes, acts as a contextual/programmable key.
      • APP_SWITCH

        public static final AndroidKey APP_SWITCH
        Key code constant: App switch key. Should bring up the application switcher dialog.
      • BUTTON_1

        public static final AndroidKey BUTTON_1
        Key code constant: Generic Game Pad Button #1.
      • BUTTON_2

        public static final AndroidKey BUTTON_2
        Key code constant: Generic Game Pad Button #2.
      • BUTTON_3

        public static final AndroidKey BUTTON_3
        Key code constant: Generic Game Pad Button #3.
      • BUTTON_4

        public static final AndroidKey BUTTON_4
        Key code constant: Generic Game Pad Button #4.
      • BUTTON_5

        public static final AndroidKey BUTTON_5
        Key code constant: Generic Game Pad Button #5.
      • BUTTON_6

        public static final AndroidKey BUTTON_6
        Key code constant: Generic Game Pad Button #6.
      • BUTTON_7

        public static final AndroidKey BUTTON_7
        Key code constant: Generic Game Pad Button #7.
      • BUTTON_8

        public static final AndroidKey BUTTON_8
        Key code constant: Generic Game Pad Button #8.
      • BUTTON_9

        public static final AndroidKey BUTTON_9
        Key code constant: Generic Game Pad Button #9.
      • BUTTON_10

        public static final AndroidKey BUTTON_10
        Key code constant: Generic Game Pad Button #10.
      • BUTTON_11

        public static final AndroidKey BUTTON_11
        Key code constant: Generic Game Pad Button #11.
      • BUTTON_12

        public static final AndroidKey BUTTON_12
        Key code constant: Generic Game Pad Button #12.
      • BUTTON_13

        public static final AndroidKey BUTTON_13
        Key code constant: Generic Game Pad Button #13.
      • BUTTON_14

        public static final AndroidKey BUTTON_14
        Key code constant: Generic Game Pad Button #14.
      • BUTTON_15

        public static final AndroidKey BUTTON_15
        Key code constant: Generic Game Pad Button #15.
      • BUTTON_16

        public static final AndroidKey BUTTON_16
        Key code constant: Generic Game Pad Button #16.
      • LANGUAGE_SWITCH

        public static final AndroidKey LANGUAGE_SWITCH
        Key code constant: Language Switch key. Toggles the current input language such as switching between English and Japanese on a QWERTY keyboard. On some devices, the same function may be performed by pressing Shift+Spacebar.
      • MANNER_MODE

        public static final AndroidKey MANNER_MODE
        Key code constant: Manner Mode key. Toggles silent or vibrate mode on and off to make the device behave more politely in certain settings such as on a crowded train. On some devices, the key may only operate when long-pressed.
      • MODE_3D

        public static final AndroidKey MODE_3D
        Key code constant: 3D Mode key. Toggles the display between 2D and 3D mode.
      • CONTACTS

        public static final AndroidKey CONTACTS
        Key code constant: Contacts special function key. Used to launch an address book application.
      • CALENDAR

        public static final AndroidKey CALENDAR
        Key code constant: Calendar special function key. Used to launch a calendar application.
      • MUSIC

        public static final AndroidKey MUSIC
        Key code constant: Music special function key. Used to launch a music player application.
      • CALCULATOR

        public static final AndroidKey CALCULATOR
        Key code constant: Calculator special function key. Used to launch a calculator application.
      • ZENKAKU_HANKAKU

        public static final AndroidKey ZENKAKU_HANKAKU
        Key code constant: Japanese full-width / half-width key.
      • EISU

        public static final AndroidKey EISU
        Key code constant: Japanese alphanumeric key.
      • MUHENKAN

        public static final AndroidKey MUHENKAN
        Key code constant: Japanese non-conversion key.
      • HENKAN

        public static final AndroidKey HENKAN
        Key code constant: Japanese conversion key.
      • KATAKANA_HIRAGANA

        public static final AndroidKey KATAKANA_HIRAGANA
        Key code constant: Japanese katakana / hiragana key.
      • YEN

        public static final AndroidKey YEN
        Key code constant: Japanese Yen key.
      • RO

        public static final AndroidKey RO
        Key code constant: Japanese Ro key.
      • KANA

        public static final AndroidKey KANA
        Key code constant: Japanese kana key.
      • ASSIST

        public static final AndroidKey ASSIST
        Key code constant: Assist key. Launches the global assist activity. Not delivered to applications.
      • BRIGHTNESS_DOWN

        public static final AndroidKey BRIGHTNESS_DOWN
        Key code constant: Brightness Down key. Adjusts the screen brightness down.
      • BRIGHTNESS_UP

        public static final AndroidKey BRIGHTNESS_UP
        Key code constant: Brightness Up key. Adjusts the screen brightness up.
      • MEDIA_AUDIO_TRACK

        public static final AndroidKey MEDIA_AUDIO_TRACK
        Key code constant: Audio Track key. Switches the audio tracks.
      • SLEEP

        public static final AndroidKey SLEEP
        Key code constant: Sleep key. Puts the device to sleep. Behaves somewhat like POWER but it has no effect if the device is already asleep.
      • WAKEUP

        public static final AndroidKey WAKEUP
        Key code constant: Wakeup key. Wakes up the device. Behaves somewhat like POWER but it has no effect if the device is already awake.
      • PAIRING

        public static final AndroidKey PAIRING
        Key code constant: Pairing key. Initiates peripheral pairing mode. Useful for pairing remote control devices or game controllers, especially if no other input mode is available.
      • MEDIA_TOP_MENU

        public static final AndroidKey MEDIA_TOP_MENU
        Key code constant: Media Top Menu key. Goes to the top of media menu.
      • KEY_11

        public static final AndroidKey KEY_11
        Key code constant: '11' key.
      • KEY_12

        public static final AndroidKey KEY_12
        Key code constant: '12' key.
      • LAST_CHANNEL

        public static final AndroidKey LAST_CHANNEL
        Key code constant: Last Channel key. Goes to the last viewed channel.
      • TV_DATA_SERVICE

        public static final AndroidKey TV_DATA_SERVICE
        Key code constant: TV data service key. Displays data services like weather, sports.
      • VOICE_ASSIST

        public static final AndroidKey VOICE_ASSIST
        Key code constant: Voice Assist key. Launches the global voice assist activity. Not delivered to applications.
      • TV_RADIO_SERVICE

        public static final AndroidKey TV_RADIO_SERVICE
        Key code constant: Radio key. Toggles TV service / Radio service.
      • TV_TELETEXT

        public static final AndroidKey TV_TELETEXT
        Key code constant: Teletext key. Displays Teletext service.
      • TV_NUMBER_ENTRY

        public static final AndroidKey TV_NUMBER_ENTRY
        Key code constant: Number entry key. Initiates to enter multi-digit channel nubmber when each digit key is assigned for selecting separate channel. Corresponds to Number Entry Mode (0x1D) of CEC User Control Code.
      • TV_TERRESTRIAL_ANALOG

        public static final AndroidKey TV_TERRESTRIAL_ANALOG
        Key code constant: Analog Terrestrial key. Switches to analog terrestrial broadcast service.
      • TV_TERRESTRIAL_DIGITAL

        public static final AndroidKey TV_TERRESTRIAL_DIGITAL
        Key code constant: Digital Terrestrial key. Switches to digital terrestrial broadcast service.
      • TV_SATELLITE

        public static final AndroidKey TV_SATELLITE
        Key code constant: Satellite key. Switches to digital satellite broadcast service.
      • TV_SATELLITE_BS

        public static final AndroidKey TV_SATELLITE_BS
        Key code constant: BS key. Switches to BS digital satellite broadcasting service available in Japan.
      • TV_SATELLITE_CS

        public static final AndroidKey TV_SATELLITE_CS
        Key code constant: CS key. Switches to CS digital satellite broadcasting service available in Japan.
      • TV_SATELLITE_SERVICE

        public static final AndroidKey TV_SATELLITE_SERVICE
        Key code constant: BS/CS key. Toggles between BS and CS digital satellite services.
      • TV_NETWORK

        public static final AndroidKey TV_NETWORK
        Key code constant: Toggle Network key. Toggles selecting broacast services.
      • TV_ANTENNA_CABLE

        public static final AndroidKey TV_ANTENNA_CABLE
        Key code constant: Antenna/Cable key. Toggles broadcast input source between antenna and cable.
      • TV_INPUT_HDMI_1

        public static final AndroidKey TV_INPUT_HDMI_1
        Key code constant: HDMI #1 key. Switches to HDMI input #1.
      • TV_INPUT_HDMI_2

        public static final AndroidKey TV_INPUT_HDMI_2
        Key code constant: HDMI #2 key. Switches to HDMI input #2.
      • TV_INPUT_HDMI_3

        public static final AndroidKey TV_INPUT_HDMI_3
        Key code constant: HDMI #3 key. Switches to HDMI input #3.
      • TV_INPUT_HDMI_4

        public static final AndroidKey TV_INPUT_HDMI_4
        Key code constant: HDMI #4 key. Switches to HDMI input #4.
      • TV_INPUT_COMPOSITE_1

        public static final AndroidKey TV_INPUT_COMPOSITE_1
        Key code constant: Composite #1 key. Switches to composite video input #1.
      • TV_INPUT_COMPOSITE_2

        public static final AndroidKey TV_INPUT_COMPOSITE_2
        Key code constant: Composite #2 key. Switches to composite video input #2.
      • TV_INPUT_COMPONENT_1

        public static final AndroidKey TV_INPUT_COMPONENT_1
        Key code constant: Component #1 key. Switches to component video input #1.
      • TV_INPUT_COMPONENT_2

        public static final AndroidKey TV_INPUT_COMPONENT_2
        Key code constant: Component #2 key. Switches to component video input #2.
      • TV_INPUT_VGA_1

        public static final AndroidKey TV_INPUT_VGA_1
        Key code constant: VGA #1 key. Switches to VGA (analog RGB) input #1.
      • TV_AUDIO_DESCRIPTION

        public static final AndroidKey TV_AUDIO_DESCRIPTION
        Key code constant: Audio description key. Toggles audio description off / on.
      • TV_AUDIO_DESCRIPTION_MIX_UP

        public static final AndroidKey TV_AUDIO_DESCRIPTION_MIX_UP
        Key code constant: Audio description mixing volume up key. Louden audio description volume as compared with normal audio volume.
      • TV_AUDIO_DESCRIPTION_MIX_DOWN

        public static final AndroidKey TV_AUDIO_DESCRIPTION_MIX_DOWN
        Key code constant: Audio description mixing volume down key. Lessen audio description volume as compared with normal audio volume.
      • TV_ZOOM_MODE

        public static final AndroidKey TV_ZOOM_MODE
        Key code constant: Zoom mode key. Changes Zoom mode (Normal, Full, Zoom, Wide-zoom, etc.)
      • TV_CONTENTS_MENU

        public static final AndroidKey TV_CONTENTS_MENU
        Key code constant: Contents menu key. Goes to the title list. Corresponds to Contents Menu (0x0B) of CEC User Control Code
      • TV_MEDIA_CONTEXT_MENU

        public static final AndroidKey TV_MEDIA_CONTEXT_MENU
        Key code constant: Media context menu key. Goes to the context menu of media contents. Corresponds to Media Context-sensitive Menu (0x11) of CEC User Control Code.
      • TV_TIMER_PROGRAMMING

        public static final AndroidKey TV_TIMER_PROGRAMMING
        Key code constant: Timer programming key. Goes to the timer recording menu. Corresponds to Timer Programming (0x54) of CEC User Control Code.
      • HELP

        public static final AndroidKey HELP
        Key code constant: Help key.
      • NAVIGATE_PREVIOUS

        public static final AndroidKey NAVIGATE_PREVIOUS
        Key code constant: Navigate to previous key. Goes backward by one item in an ordered collection of items.
      • NAVIGATE_NEXT

        public static final AndroidKey NAVIGATE_NEXT
        Key code constant: Navigate to next key. Advances to the next item in an ordered collection of items.
      • NAVIGATE_IN

        public static final AndroidKey NAVIGATE_IN
        Key code constant: Navigate in key. Activates the item that currently has focus or expands to the next level of a navigation hierarchy.
      • NAVIGATE_OUT

        public static final AndroidKey NAVIGATE_OUT
        Key code constant: Navigate out key. Backs out one level of a navigation hierarchy or collapses the item that currently has focus.
      • STEM_PRIMARY

        public static final AndroidKey STEM_PRIMARY
        Key code constant: Primary stem key for Wear. Main power/reset button on watch.
      • STEM_1

        public static final AndroidKey STEM_1
        Key code constant: Generic stem key 1 for Wear.
      • STEM_2

        public static final AndroidKey STEM_2
        Key code constant: Generic stem key 2 for Wear.
      • STEM_3

        public static final AndroidKey STEM_3
        Key code constant: Generic stem key 3 for Wear.
      • DPAD_UP_LEFT

        public static final AndroidKey DPAD_UP_LEFT
        Key code constant: Directional Pad Up-Left.
      • DPAD_DOWN_LEFT

        public static final AndroidKey DPAD_DOWN_LEFT
        Key code constant: Directional Pad Down-Left.
      • DPAD_UP_RIGHT

        public static final AndroidKey DPAD_UP_RIGHT
        Key code constant: Directional Pad Up-Right.
      • DPAD_DOWN_RIGHT

        public static final AndroidKey DPAD_DOWN_RIGHT
        Key code constant: Directional Pad Down-Right.
      • MEDIA_SKIP_FORWARD

        public static final AndroidKey MEDIA_SKIP_FORWARD
        Key code constant: Skip forward media key.
      • MEDIA_SKIP_BACKWARD

        public static final AndroidKey MEDIA_SKIP_BACKWARD
        Key code constant: Skip backward media key.
      • MEDIA_STEP_FORWARD

        public static final AndroidKey MEDIA_STEP_FORWARD
        Key code constant: Step forward media key. Steps media forward, one frame at a time.
      • MEDIA_STEP_BACKWARD

        public static final AndroidKey MEDIA_STEP_BACKWARD
        Key code constant: Step backward media key. Steps media backward, one frame at a time.
      • SOFT_SLEEP

        public static final AndroidKey SOFT_SLEEP
        Key code constant: put device to sleep unless a wakelock is held.
      • CUT

        public static final AndroidKey CUT
        Key code constant: Cut key.
      • COPY

        public static final AndroidKey COPY
        Key code constant: Copy key.
      • PASTE

        public static final AndroidKey PASTE
        Key code constant: Paste key.
    • Method Detail

      • values

        public static AndroidKey[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AndroidKey c : AndroidKey.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AndroidKey valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getCode

        public int getCode()
      • isGamepadButton

        public boolean isGamepadButton()
        Returns true if the specified nativekey is a gamepad button.
        Returns:
        True if the nativekey is a gamepad button, such as BUTTON_A.
      • isConfirmKey

        public boolean isConfirmKey()
        Whether key will, by default, trigger a click on the focused view.
        Returns:
        true if this is a confirm key.
      • isMediaKey

        public boolean isMediaKey()
        Whether this key is a media key, which can be send to apps that are interested in media key events.
        Returns:
        true if this is a media key.
      • isSystemKey

        public boolean isSystemKey()
        Is this a system key? System keys can not be used for menu shortcuts.
        Returns:
        true if this is a system key.
      • isWakeKey

        public boolean isWakeKey()
        Is it wake key or not.
        Returns:
        true if this is a wakeup key.