to top
Android APIs
Added in API level 1
Deprecated since API level 11
public static class

KeyCharacterMap.KeyData

extends Object
java.lang.Object
   ↳ android.view.KeyCharacterMap.KeyData

This class was deprecated in API level 11.
instead use getDisplayLabel(int), getNumber(int) and get(int, int).

Class Overview

Describes the character mappings associated with a key.

Summary

Constants
int META_LENGTH
Fields
public char displayLabel The display label (see getDisplayLabel(int)).
public char[] meta The character that will be generated in various meta states (the same ones used for get(int, int) and defined as META_SHIFT_ON and META_ALT_ON).
public char number The "number" value (see getNumber(int)).
Public Constructors

? Examples
KeyCharacterMap.KeyData()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int META_LENGTH

Added in API level 1

Constant Value: 4 (0x00000004)

Fields

public char displayLabel

Added in API level 1

The display label (see getDisplayLabel(int)).

public char[] meta

Added in API level 1

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

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

public char number

Added in API level 1

The "number" value (see getNumber(int)).

Public Constructors

public KeyCharacterMap.KeyData ()

Added in API level 1

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.