Share via


KeyCharacterMap.GetMatch Method

Definition

Overloads

GetMatch(Keycode, Char[], Int32)
GetMatch(Keycode, Char[])

Gets the first character in the character array that can be generated by the specified key code.

GetMatch(Keycode, Char[], MetaKeyStates)

Gets the first character in the character array that can be generated by the specified key code.

GetMatch(Keycode, Char[], Int32)

public char GetMatch (Android.Views.Keycode keyCode, char[] chars, int metaState);
member this.GetMatch : Android.Views.Keycode * char[] * int -> char

Parameters

keyCode
Keycode
chars
Char[]
metaState
Int32

Returns

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

GetMatch(Keycode, Char[])

Gets the first character in the character array that can be generated by the specified key code.

[Android.Runtime.Register("getMatch", "(I[C)C", "GetGetMatch_IarrayCHandler")]
public virtual char GetMatch (Android.Views.Keycode keyCode, char[]? chars);
[<Android.Runtime.Register("getMatch", "(I[C)C", "GetGetMatch_IarrayCHandler")>]
abstract member GetMatch : Android.Views.Keycode * char[] -> char
override this.GetMatch : Android.Views.Keycode * char[] -> char

Parameters

keyCode
Keycode

The keycode.

chars
Char[]

The array of matching characters to consider.

Returns

The matching associated character, or 0 if none.

Attributes

Remarks

Gets the first character in the character array that can be generated by the specified key code.

This is a convenience function that returns the same value as #getMatch(int,char[],int) getMatch(keyCode, chars, 0).

Java documentation for android.view.KeyCharacterMap.getMatch(int, char[]).

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

GetMatch(Keycode, Char[], MetaKeyStates)

Gets the first character in the character array that can be generated by the specified key code.

[Android.Runtime.Register("getMatch", "(I[CI)C", "GetGetMatch_IarrayCIHandler")]
public virtual char GetMatch (Android.Views.Keycode keyCode, char[]? chars, Android.Views.MetaKeyStates metaState);
[<Android.Runtime.Register("getMatch", "(I[CI)C", "GetGetMatch_IarrayCIHandler")>]
abstract member GetMatch : Android.Views.Keycode * char[] * Android.Views.MetaKeyStates -> char
override this.GetMatch : Android.Views.Keycode * char[] * Android.Views.MetaKeyStates -> char

Parameters

keyCode
Keycode

The key code.

chars
Char[]

The array of matching characters to consider.

metaState
MetaKeyStates

The preferred meta key modifier state.

Returns

The matching associated character, or 0 if none.

Attributes

Remarks

Gets the first character in the character array that can be generated by the specified key code. If there are multiple choices, prefers the one that would be generated with the specified meta key modifier state.

Java documentation for android.view.KeyCharacterMap.getMatch(int, char[], 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