語言

KeyEvent.GetMatch 方法

定義

多載

名稱 Description
GetMatch(Char[], MetaKeyStates)

取得由指定鍵碼可產生的字元陣列中的第一個字元。

GetMatch(Char[])

取得由指定鍵碼可產生的字元陣列中的第一個字元。

GetMatch(Char[], Int32)
已淘汰.

取得這個關鍵事件能在特定元狀態下產生的第一個候選角色。

GetMatch(Char[], MetaKeyStates)

取得由指定鍵碼可產生的字元陣列中的第一個字元。

[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

參數

chars
Char[]

需要考慮的匹配字元陣列。

metaState
MetaKeyStates

首選的 meta 鍵修飾狀態。

傳回

匹配的相關字元,或若沒有則為 0。

屬性

備註

取得由指定鍵碼可產生的字元陣列中的第一個字元。 如果有多個選項,則偏好以指定元鍵修飾條件狀態產生的選項。

的 android.view.KeyEvent.getMatch(char[], int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

GetMatch(Char[])

取得由指定鍵碼可產生的字元陣列中的第一個字元。

[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

參數

chars
Char[]

需要考慮的匹配字元陣列。

傳回

匹配的相關字元,或若沒有則為 0。

屬性

備註

取得由指定鍵碼可產生的字元陣列中的第一個字元。

這是一個便利函數,回傳與 #getMatch(char[],int) getMatch(chars, 0)相同的值。

的 android.view.KeyEvent.getMatch(char[])Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

GetMatch(Char[], Int32)

警告

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

參數

chars
Char[]

用於角色的 System.Char[] 值。

metaState
Int32

用於元狀態的 System.Int32 值。

傳回

這是取得配對操作的結果。

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於