KeyCustomizationTrigger


class KeyCustomizationTrigger : CustomizationTrigger
kotlin.Any
   ↳ android.hardware.input.CustomizationTrigger
   ↳ android.hardware.input.KeyCustomizationTrigger

Represents a trigger based on a physical key press on a peripheral.

Summary

Constants
static Int

Customizable Key code: Assist key.

static Int

Customizable Key code: Back key.

static Int

Customizable Key code: Bookmark key.

static Int

Customizable Key code: Brightness Down key.

static Int

Customizable Key code: Brightness Up key.

static Int

Customizable Key code: Calculator key.

static Int

Customizable Key code: Calendar key.

static Int

Customizable Key code: Camera key.

static Int

Customizable Key code: Contacts key.

static Int

Customizable Key code: Dictate key.

static Int

Customizable Key code: Envelope key.

static Int

Customizable Key code: Explorer key.

static Int

Customizable Key code: F1 key.

static Int

Customizable Key code: F10 key.

static Int

Customizable Key code: F11 key.

static Int

Customizable Key code: F12 key.

static Int

Customizable Key code: F13 key.

static Int

Customizable Key code: F14 key.

static Int

Customizable Key code: F15 key.

static Int

Customizable Key code: F16 key.

static Int

Customizable Key code: F17 key.

static Int

Customizable Key code: F18 key.

static Int

Customizable Key code: F19 key.

static Int

Customizable Key code: F2 key.

static Int

Customizable Key code: F20 key.

static Int

Customizable Key code: F21 key.

static Int

Customizable Key code: F22 key.

static Int

Customizable Key code: F23 key.

static Int

Customizable Key code: F24 key.

static Int

Customizable Key code: F3 key.

static Int

Customizable Key code: F4 key.

static Int

Customizable Key code: F5 key.

static Int

Customizable Key code: F6 key.

static Int

Customizable Key code: F7 key.

static Int

Customizable Key code: F8 key.

static Int

Customizable Key code: F9 key.

static Int

Customizable Key code: Forward key.

static Int

Customizable Key code: Full Screen key.

static Int

Customizable Key code: Eject key.

static Int

Customizable Key code: Next Media key.

static Int

Customizable Key code: Play/Pause Media key.

static Int

Customizable Key code: Previous Media key.

static Int

Customizable Key code: Stop Media key.

static Int

Customizable Key code: Menu key.

static Int

Customizable Key code: Home key.

static Int

Customizable Key code: Music key.

static Int

Customizable Key code: New key.

static Int

Customizable Key code: Screenshot key.

static Int

Customizable Key code: Search key.

static Int

Customizable Key code: System Request / Print Screen key.

static Int

Customizable Key code: Volume Down key.

static Int

Customizable Key code: Volume Mute key.

static Int

Customizable Key code: Volume Up key.

Public constructors

Creates a Trigger for a specific key code.

Public methods
Int

Returns the key code associated with this trigger.

String

Inherited functions

Constants

CUSTOMIZABLE_KEYCODE_ASSIST

static val CUSTOMIZABLE_KEYCODE_ASSIST: Int

Customizable Key code: Assist key.

Value: 219

CUSTOMIZABLE_KEYCODE_BACK

static val CUSTOMIZABLE_KEYCODE_BACK: Int

Customizable Key code: Back key.

Value: 4

CUSTOMIZABLE_KEYCODE_BOOKMARK

static val CUSTOMIZABLE_KEYCODE_BOOKMARK: Int

Customizable Key code: Bookmark key.

Value: 174

CUSTOMIZABLE_KEYCODE_BRIGHTNESS_DOWN

static val CUSTOMIZABLE_KEYCODE_BRIGHTNESS_DOWN: Int

Customizable Key code: Brightness Down key.

Value: 220

CUSTOMIZABLE_KEYCODE_BRIGHTNESS_UP

static val CUSTOMIZABLE_KEYCODE_BRIGHTNESS_UP: Int

Customizable Key code: Brightness Up key.

Value: 221

CUSTOMIZABLE_KEYCODE_CALCULATOR

static val CUSTOMIZABLE_KEYCODE_CALCULATOR: Int

Customizable Key code: Calculator key.

Value: 210

CUSTOMIZABLE_KEYCODE_CALENDAR

static val CUSTOMIZABLE_KEYCODE_CALENDAR: Int

Customizable Key code: Calendar key.

Value: 208

CUSTOMIZABLE_KEYCODE_CAMERA

static val CUSTOMIZABLE_KEYCODE_CAMERA: Int

Customizable Key code: Camera key.

Value: 27

CUSTOMIZABLE_KEYCODE_CONTACTS

static val CUSTOMIZABLE_KEYCODE_CONTACTS: Int

Customizable Key code: Contacts key.

Value: 207

CUSTOMIZABLE_KEYCODE_DICTATE

static val CUSTOMIZABLE_KEYCODE_DICTATE: Int

Customizable Key code: Dictate key.

Value: 319

CUSTOMIZABLE_KEYCODE_ENVELOPE

static val CUSTOMIZABLE_KEYCODE_ENVELOPE: Int

Customizable Key code: Envelope key.

Value: 65

CUSTOMIZABLE_KEYCODE_EXPLORER

static val CUSTOMIZABLE_KEYCODE_EXPLORER: Int

Customizable Key code: Explorer key.

Value: 64

CUSTOMIZABLE_KEYCODE_F1

static val CUSTOMIZABLE_KEYCODE_F1: Int

Customizable Key code: F1 key.

Value: 131

CUSTOMIZABLE_KEYCODE_F10

static val CUSTOMIZABLE_KEYCODE_F10: Int

Customizable Key code: F10 key.

Value: 140

CUSTOMIZABLE_KEYCODE_F11

static val CUSTOMIZABLE_KEYCODE_F11: Int

Customizable Key code: F11 key.

Value: 141

CUSTOMIZABLE_KEYCODE_F12

static val CUSTOMIZABLE_KEYCODE_F12: Int

Customizable Key code: F12 key.

Value: 142

CUSTOMIZABLE_KEYCODE_F13

static val CUSTOMIZABLE_KEYCODE_F13: Int

Customizable Key code: F13 key.

Value: 326

CUSTOMIZABLE_KEYCODE_F14

static val CUSTOMIZABLE_KEYCODE_F14: Int

Customizable Key code: F14 key.

Value: 327

CUSTOMIZABLE_KEYCODE_F15

static val CUSTOMIZABLE_KEYCODE_F15: Int

Customizable Key code: F15 key.

Value: 328

CUSTOMIZABLE_KEYCODE_F16

static val CUSTOMIZABLE_KEYCODE_F16: Int

Customizable Key code: F16 key.

Value: 329

CUSTOMIZABLE_KEYCODE_F17

static val CUSTOMIZABLE_KEYCODE_F17: Int

Customizable Key code: F17 key.

Value: 330

CUSTOMIZABLE_KEYCODE_F18

static val CUSTOMIZABLE_KEYCODE_F18: Int

Customizable Key code: F18 key.

Value: 331

CUSTOMIZABLE_KEYCODE_F19

static val CUSTOMIZABLE_KEYCODE_F19: Int

Customizable Key code: F19 key.

Value: 332

CUSTOMIZABLE_KEYCODE_F2

static val CUSTOMIZABLE_KEYCODE_F2: Int

Customizable Key code: F2 key.

Value: 132

CUSTOMIZABLE_KEYCODE_F20

static val CUSTOMIZABLE_KEYCODE_F20: Int

Customizable Key code: F20 key.

Value: 333

CUSTOMIZABLE_KEYCODE_F21

static val CUSTOMIZABLE_KEYCODE_F21: Int

Customizable Key code: F21 key.

Value: 334

CUSTOMIZABLE_KEYCODE_F22

static val CUSTOMIZABLE_KEYCODE_F22: Int

Customizable Key code: F22 key.

Value: 335

CUSTOMIZABLE_KEYCODE_F23

static val CUSTOMIZABLE_KEYCODE_F23: Int

Customizable Key code: F23 key.

Value: 336

CUSTOMIZABLE_KEYCODE_F24

static val CUSTOMIZABLE_KEYCODE_F24: Int

Customizable Key code: F24 key.

Value: 337

CUSTOMIZABLE_KEYCODE_F3

static val CUSTOMIZABLE_KEYCODE_F3: Int

Customizable Key code: F3 key.

Value: 133

CUSTOMIZABLE_KEYCODE_F4

static val CUSTOMIZABLE_KEYCODE_F4: Int

Customizable Key code: F4 key.

Value: 134

CUSTOMIZABLE_KEYCODE_F5

static val CUSTOMIZABLE_KEYCODE_F5: Int

Customizable Key code: F5 key.

Value: 135

CUSTOMIZABLE_KEYCODE_F6

static val CUSTOMIZABLE_KEYCODE_F6: Int

Customizable Key code: F6 key.

Value: 136

CUSTOMIZABLE_KEYCODE_F7

static val CUSTOMIZABLE_KEYCODE_F7: Int

Customizable Key code: F7 key.

Value: 137

CUSTOMIZABLE_KEYCODE_F8

static val CUSTOMIZABLE_KEYCODE_F8: Int

Customizable Key code: F8 key.

Value: 138

CUSTOMIZABLE_KEYCODE_F9

static val CUSTOMIZABLE_KEYCODE_F9: Int

Customizable Key code: F9 key.

Value: 139

CUSTOMIZABLE_KEYCODE_FORWARD

static val CUSTOMIZABLE_KEYCODE_FORWARD: Int

Customizable Key code: Forward key.

Value: 125

CUSTOMIZABLE_KEYCODE_FULLSCREEN

static val CUSTOMIZABLE_KEYCODE_FULLSCREEN: Int

Customizable Key code: Full Screen key.

Value: 325

CUSTOMIZABLE_KEYCODE_MEDIA_EJECT

static val CUSTOMIZABLE_KEYCODE_MEDIA_EJECT: Int

Customizable Key code: Eject key.

Value: 129

CUSTOMIZABLE_KEYCODE_MEDIA_NEXT

static val CUSTOMIZABLE_KEYCODE_MEDIA_NEXT: Int

Customizable Key code: Next Media key.

Value: 87

CUSTOMIZABLE_KEYCODE_MEDIA_PLAY_PAUSE

static val CUSTOMIZABLE_KEYCODE_MEDIA_PLAY_PAUSE: Int

Customizable Key code: Play/Pause Media key.

Value: 85

CUSTOMIZABLE_KEYCODE_MEDIA_PREVIOUS

static val CUSTOMIZABLE_KEYCODE_MEDIA_PREVIOUS: Int

Customizable Key code: Previous Media key.

Value: 88

CUSTOMIZABLE_KEYCODE_MEDIA_STOP

static val CUSTOMIZABLE_KEYCODE_MEDIA_STOP: Int

Customizable Key code: Stop Media key.

Value: 86

CUSTOMIZABLE_KEYCODE_MENU

static val CUSTOMIZABLE_KEYCODE_MENU: Int

Customizable Key code: Menu key.

Value: 82

CUSTOMIZABLE_KEYCODE_MOVE_HOME

static val CUSTOMIZABLE_KEYCODE_MOVE_HOME: Int

Customizable Key code: Home key.

Value: 122

CUSTOMIZABLE_KEYCODE_MUSIC

static val CUSTOMIZABLE_KEYCODE_MUSIC: Int

Customizable Key code: Music key.

Value: 209

CUSTOMIZABLE_KEYCODE_NEW

static val CUSTOMIZABLE_KEYCODE_NEW: Int

Customizable Key code: New key.

Value: 320

CUSTOMIZABLE_KEYCODE_SCREENSHOT

static val CUSTOMIZABLE_KEYCODE_SCREENSHOT: Int

Customizable Key code: Screenshot key.

Value: 318
static val CUSTOMIZABLE_KEYCODE_SEARCH: Int

Customizable Key code: Search key.

Value: 84

CUSTOMIZABLE_KEYCODE_SYSRQ

static val CUSTOMIZABLE_KEYCODE_SYSRQ: Int

Customizable Key code: System Request / Print Screen key.

Value: 120

CUSTOMIZABLE_KEYCODE_VOLUME_DOWN

static val CUSTOMIZABLE_KEYCODE_VOLUME_DOWN: Int

Customizable Key code: Volume Down key.

Value: 25

CUSTOMIZABLE_KEYCODE_VOLUME_MUTE

static val CUSTOMIZABLE_KEYCODE_VOLUME_MUTE: Int

Customizable Key code: Volume Mute key.

Value: 164

CUSTOMIZABLE_KEYCODE_VOLUME_UP

static val CUSTOMIZABLE_KEYCODE_VOLUME_UP: Int

Customizable Key code: Volume Up key.

Value: 24

Public constructors

KeyCustomizationTrigger

KeyCustomizationTrigger(keyCode: Int)

Creates a Trigger for a specific key code.

Parameters
keyCode Int: The key code for the trigger. Must be a android.hardware.input.KeyCustomizationTrigger.CustomizableKeyCode.
Value is one of the following:

Public methods

getKeyCode

fun getKeyCode(): Int

Returns the key code associated with this trigger.

Return
Int Value is one of the following:

toString

fun toString(): String