Megosztás a következőn keresztül:


KeyEvent.GetUnicodeChar Method

Definition

Overloads

GetUnicodeChar(MetaKeyStates)

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

GetUnicodeChar(Int32)
Obsolete.

GetUnicodeChar(MetaKeyStates)

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

[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

Parameters

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 KeyCharacterMap#COMBINING_ACCENT set, the key is a "dead key" that should be combined with another to actually produce a character -- see KeyCharacterMap#getDeadChar -- after masking with KeyCharacterMap#COMBINING_ACCENT_MASK.

Java documentation for android.view.KeyEvent.getUnicodeChar(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

GetUnicodeChar(Int32)

Caution

Please use GetUnicodeChar(MetaKeyStates)

[System.Obsolete("Please use GetUnicodeChar(MetaKeyStates)")]
public int GetUnicodeChar (int meta);
[<System.Obsolete("Please use GetUnicodeChar(MetaKeyStates)")>]
member this.GetUnicodeChar : int -> int

Parameters

meta
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