共用方式為


KeyEvent.GetMatch Method

Definition

Overloads

GetMatch(Char[])

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

GetMatch(Char[], MetaKeyStates)

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

GetMatch(Char[], Int32)
Obsolete.

GetMatch(Char[])

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

[Android.Runtime.Register("getMatch", "([C)C", "GetGetMatch_arrayCHandler")]
public virtual char GetMatch (char[]? chars);
[<Android.Runtime.Register("getMatch", "([C)C", "GetGetMatch_arrayCHandler")>]
abstract member GetMatch : char[] -> char
override this.GetMatch : char[] -> char

Parameters

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(char[],int) getMatch(chars, 0).

Java documentation for android.view.KeyEvent.getMatch(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(Char[], MetaKeyStates)

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

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

Parameters

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.KeyEvent.getMatch(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

GetMatch(Char[], Int32)

Caution

Please use GetMatch(char[], MetaKeyStates)

[System.Obsolete("Please use GetMatch(char[], MetaKeyStates)")]
public char GetMatch (char[] chars, int metaState);
[<System.Obsolete("Please use GetMatch(char[], MetaKeyStates)")>]
member this.GetMatch : char[] * int -> char

Parameters

chars
Char[]
metaState
Int32

Returns

Attributes

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