Android Guides | Samples

Android.Views.KeyCharacterMap Class

Describes the keys provided by a keyboard device and their associated labels.

See Also: KeyCharacterMap

Syntax

[Android.Runtime.Register("android/view/KeyCharacterMap", DoNotGenerateAcw=true)]
public class KeyCharacterMap : Object, IParcelable, IDisposable

Remarks

Describes the keys provided by a keyboard device and their associated labels.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Views.KeyCharacterMap are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
CombiningAccentInt32 (-2147483648).
const
CombiningAccentMaskInt32 (2147483647). Mask the return value from KeyCharacterMap.Get(Keycode,MetaKeyStates) with this value to get a printable representation of the accent character of a "dead key.
const
HexInputChar. This private-use character is used to trigger Unicode character input by hex digits.
const
PickerDialogInputChar. This private-use character is used to bring up a character picker for miscellaneous symbols.

Public Properties

[read-only]
static
CreatorIParcelableCreator.
[read-only]
KeyboardTypeKeyboardType. Gets the keyboard type.
[read-only]
ModifierBehaviorKeyModifierBehavior. Gets a constant that describes the behavior of this keyboard's modifier keys such as KeyEvent.KEYCODE_SHIFT_LEFT.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
static
DeviceHasKey(Keycode) : Boolean
Queries the framework about whether any physical keys exist on the any keyboard attached to the device that are capable of producing the given key code.
static
DeviceHasKeys(Keycode[]) : Boolean[]
Queries the framework about whether any physical keys exist on the any keyboard attached to the device that are capable of producing the given array of key codes.
Get(Keycode, MetaKeyStates) : Int32
Gets the Unicode character generated by the specified key and meta key state combination.
Get(Keycode, Int32) : Int32
static
GetDeadChar(Int32, Int32) : Int32
Get the character that is produced by combining the dead key producing accent with the key producing character c.
GetDisplayLabel(Keycode) : Char
Gets the primary character for this key.
GetEvents(Char[]) : KeyEvent[]
Get an array of KeyEvent objects that if put into the input stream could plausibly generate the provided sequence of characters.
GetKeyData(Keycode, KeyCharacterMap+KeyData) : Boolean
Get the character conversion data for a given key code.
GetMatch(Keycode, Char[]) : Char
Gets the first character in the character array that can be generated by the specified key code.
GetMatch(Keycode, Char[], MetaKeyStates) : Char
Gets the first character in the character array that can be generated by the specified key code.
GetMatch(Keycode, Char[], Int32) : Char
GetNumber(Keycode) : Char
Gets the number or symbol associated with the key.
IsPrintingKey(Keycode) : Boolean
Returns true if the specified key produces a glyph.
static
Load(Int32) : KeyCharacterMap
Loads the key character maps for the keyboard with the specified device id.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.