KeyCharacterMap.Get Method

Definition

Overloads

Name Description
Get(Keycode, MetaKeyStates)

Gets the Unicode character generated by the specified key and meta key state combination.

Get(Keycode, Int32)

Gets the character or code point produced by the specified key code and meta state.

Get(Keycode, MetaKeyStates)

Gets the Unicode character generated by the specified key and meta key state combination.

[Android.Runtime.Register("get", "(II)I", "GetGet_IIHandler")]
public virtual int Get(Android.Views.Keycode keyCode, Android.Views.MetaKeyStates metaState);
[<Android.Runtime.Register("get", "(II)I", "GetGet_IIHandler")>]
abstract member Get : Android.Views.Keycode * Android.Views.MetaKeyStates -> int
override this.Get : Android.Views.Keycode * Android.Views.MetaKeyStates -> int

Parameters

keyCode
Keycode

The key code.

metaState
MetaKeyStates

The meta key modifier state.

Returns

The associated character or combining accent, or 0 if none.

Attributes

Remarks

Gets the Unicode character generated by the specified key and meta key state combination.

Returns the Unicode character that the specified key would produce when the specified meta bits (see MetaKeyKeyListener) were active.

Returns 0 if the key is not one that is used to type Unicode characters.

If the return value has bit #COMBINING_ACCENT set, the key is a "dead key" that should be combined with another to actually produce a character -- see #getDeadChar -- after masking with #COMBINING_ACCENT_MASK.

Java documentation for android.view.KeyCharacterMap.get(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Get(Keycode, Int32)

Gets the character or code point produced by the specified key code and meta state.

public int Get(Android.Views.Keycode keyCode, int metaState);
member this.Get : Android.Views.Keycode * int -> int

Parameters

keyCode
Keycode

The Android.Views.Keycode value used for key code.

metaState
Int32

The System.Int32 value used for meta state.

Returns

The result of the get operation.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to