Stay organized with collections
Save and categorize content based on your preferences.
KeyCharacterMap.KeyData
public
static
class
KeyCharacterMap.KeyData
extends Object
This class was deprecated
in API level 11.
instead use KeyCharacterMap.getDisplayLabel(int)
,
KeyCharacterMap.getNumber(int)
and KeyCharacterMap.get(int, int)
.
Describes the character mappings associated with a key.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
public static final int META_LENGTH
Constant Value:
4
(0x00000004)
Fields
Public constructors
KeyData
public KeyData ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# KeyCharacterMap.KeyData\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Fields](#lfields) \\| [Ctors](#pubctors) \\| [Inherited Methods](#inhmethods) \n\nKeyCharacterMap.KeyData\n=======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/KeyCharacterMap.KeyData \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\nclass\nKeyCharacterMap.KeyData\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|--------------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.view.KeyCharacterMap.KeyData |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This class was deprecated\nin API level 11.** \n\ninstead use [KeyCharacterMap.getDisplayLabel(int)](/reference/android/view/KeyCharacterMap#getDisplayLabel(int)),\n[KeyCharacterMap.getNumber(int)](/reference/android/view/KeyCharacterMap#getNumber(int)) and [KeyCharacterMap.get(int, int)](/reference/android/view/KeyCharacterMap#get(int,%20int)).\n\nDescribes the character mappings associated with a key.\n\nSummary\n-------\n\n| ### Constants ||\n|-------|----------------------------------------------------------------------------|\n| `int` | [META_LENGTH](/reference/android/view/KeyCharacterMap.KeyData#META_LENGTH) |\n\n| ### Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` public char` | [displayLabel](/reference/android/view/KeyCharacterMap.KeyData#displayLabel) The display label (see [KeyCharacterMap.getDisplayLabel(int)](/reference/android/view/KeyCharacterMap#getDisplayLabel(int))). |\n| ` public char[]` | [meta](/reference/android/view/KeyCharacterMap.KeyData#meta) The character that will be generated in various meta states (the same ones used for [KeyCharacterMap.get(int, int)](/reference/android/view/KeyCharacterMap#get(int,%20int)) and defined as [KeyEvent.META_SHIFT_ON](/reference/android/view/KeyEvent#META_SHIFT_ON) and [KeyEvent.META_ALT_ON](/reference/android/view/KeyEvent#META_ALT_ON)). |\n| ` public char` | [number](/reference/android/view/KeyCharacterMap.KeyData#number) The \"number\" value (see [KeyCharacterMap.getNumber(int)](/reference/android/view/KeyCharacterMap#getNumber(int))). |\n\n| ### Public constructors ||\n|------------------------------------------------------------------------------|---|\n| ` `[KeyData](/reference/android/view/KeyCharacterMap.KeyData#KeyData())`() ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nConstants\n---------\n\n### META_LENGTH\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int META_LENGTH\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n4\n(0x00000004)\n\n\nFields\n------\n\n### displayLabel\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic char displayLabel\n```\n\nThe display label (see [KeyCharacterMap.getDisplayLabel(int)](/reference/android/view/KeyCharacterMap#getDisplayLabel(int))).\n\n\u003cbr /\u003e\n\n### meta\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic char[] meta\n```\n\nThe character that will be generated in various meta states\n(the same ones used for [KeyCharacterMap.get(int, int)](/reference/android/view/KeyCharacterMap#get(int,%20int)) and defined as\n[KeyEvent.META_SHIFT_ON](/reference/android/view/KeyEvent#META_SHIFT_ON) and [KeyEvent.META_ALT_ON](/reference/android/view/KeyEvent#META_ALT_ON)).\n\n| Index | Value |\n|-------|:-------------|\n| 0 | no modifiers |\n| 1 | caps |\n| 2 | alt |\n| 3 | caps + alt |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### number\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic char number\n```\n\nThe \"number\" value (see [KeyCharacterMap.getNumber(int)](/reference/android/view/KeyCharacterMap#getNumber(int))).\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### KeyData\n\n```\npublic KeyData ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]