- chars
- The sequence of characters to generate.
Documentation for this section has not yet been entered.
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).