Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1
Deprecated in API level 11

KeyData

open class KeyData
kotlin.Any
   ↳ android.view.KeyCharacterMap.KeyData

Describes the character mappings associated with a key.

Summary

Constants
static Int

Public constructors

Properties
Char

The display label (see getDisplayLabel).

CharArray!

The character that will be generated in various meta states (the same ones used for get and defined as KeyEvent#META_SHIFT_ON and KeyEvent#META_ALT_ON).

Char

The "number" value (see getNumber).

Constants

META_LENGTH

Added in API level 1
Deprecated in API level 11
static val META_LENGTH: Int

Deprecated.

Value: 4

Public constructors

<init>

KeyData()

Properties

displayLabel

Added in API level 1
Deprecated in API level 11
var displayLabel: Char

Deprecated.

The display label (see getDisplayLabel).

meta

Added in API level 1
Deprecated in API level 11
var meta: CharArray!

Deprecated.

The character that will be generated in various meta states (the same ones used for get and defined as KeyEvent#META_SHIFT_ON and KeyEvent#META_ALT_ON).

Index Value
0 no modifiers
1 caps
2 alt
3 caps + alt

number

Added in API level 1
Deprecated in API level 11
var number: Char

Deprecated.

The "number" value (see getNumber).