Android.Views.KeyCharacterMap.GetEvents Method
Get an array of KeyEvent objects that if put into the input stream could plausibly generate the provided sequence of characters.

Syntax

[Android.Runtime.Register("getEvents", "([C)[Landroid/view/KeyEvent;", "GetGetEvents_arrayCHandler")]
public virtual KeyEvent[] GetEvents (char[] chars)

Parameters

chars
The sequence of characters to generate.

Returns

Documentation for this section has not yet been entered.

Remarks

Get an array of KeyEvent objects that if put into the input stream could plausibly generate the provided sequence of characters. It is not guaranteed that the sequence is the only way to generate these events or that it is optimal.

This function is primarily offered for instrumentation and testing purposes. It may fail to map characters to key codes. In particular, the key character map for the KeyCharacterMap.BUILT_IN_KEYBOARD device id may be empty. Consider using the key character map associated with the KeyCharacterMap.VIRTUAL_KEYBOARD device id instead.

For robust text entry, do not use this function. Instead construct a Android.Views.KeyEvent with action code KeyEvent.ACTION_MULTIPLE that contains the desired string using KeyEvent(long, System.String, System.String, System.String).

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1