KeyEvent.GetUnicodeChar 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetUnicodeChar(Int32) |
已淘汰.
取得由此關鍵事件產生的 Unicode 字元,並帶有指定的元狀態。 |
| GetUnicodeChar(MetaKeyStates) |
取得由指定金鑰與元金鑰狀態組合產生的 Unicode 字元。 |
GetUnicodeChar(Int32)
警告
Please use GetUnicodeChar(MetaKeyStates)
取得由此關鍵事件產生的 Unicode 字元,並帶有指定的元狀態。
[System.Obsolete("Please use GetUnicodeChar(MetaKeyStates)")]
public int GetUnicodeChar(int meta);
[<System.Obsolete("Please use GetUnicodeChar(MetaKeyStates)")>]
member this.GetUnicodeChar : int -> int
參數
- meta
- Int32
用於元環境的 System.Int32 值。
傳回
這是取得 unicode 字符運算的結果。
- 屬性
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
GetUnicodeChar(MetaKeyStates)
取得由指定金鑰與元金鑰狀態組合產生的 Unicode 字元。
[Android.Runtime.Register("getUnicodeChar", "(I)I", "GetGetUnicodeChar_IHandler")]
public virtual int GetUnicodeChar(Android.Views.MetaKeyStates metaState);
[<Android.Runtime.Register("getUnicodeChar", "(I)I", "GetGetUnicodeChar_IHandler")>]
abstract member GetUnicodeChar : Android.Views.MetaKeyStates -> int
override this.GetUnicodeChar : Android.Views.MetaKeyStates -> int
參數
- metaState
- MetaKeyStates
元鍵修飾狀態。
傳回
該有對應的字元或組合重音,若沒有則為 0。
- 屬性
備註
取得由指定金鑰與元金鑰狀態組合產生的 Unicode 字元。
回傳指定鍵在指定元位元(參見 MetaKeyKeyListener)啟用時所產生的 Unicode 字元。
若金鑰不是用來輸入 Unicode 字元的鍵,則回傳 0。
如果回傳值有位元 KeyCharacterMap#COMBINING_ACCENT 設定,該金鑰就是一個「死金鑰」,應該與另一個金鑰結合才能產生字元——參見 KeyCharacterMap#getDeadChar ——在用 KeyCharacterMap#COMBINING_ACCENT_MASK遮罩後。
的 android.view.KeyEvent.getUnicodeChar(int)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。