Partager via


KeyEvent.UnicodeChar Property

Definition

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

public virtual int UnicodeChar { [Android.Runtime.Register("getUnicodeChar", "()I", "GetGetUnicodeCharHandler")] get; }
[<get: Android.Runtime.Register("getUnicodeChar", "()I", "GetGetUnicodeCharHandler")>]
member this.UnicodeChar : int

Property Value

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().

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