InputMethodService.SendKeyChar(Char) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Send the given UTF-16 character to the current input connection.
[Android.Runtime.Register("sendKeyChar", "(C)V", "GetSendKeyChar_CHandler")]
public virtual void SendKeyChar (char charCode);
[<Android.Runtime.Register("sendKeyChar", "(C)V", "GetSendKeyChar_CHandler")>]
abstract member SendKeyChar : char -> unit
override this.SendKeyChar : char -> unit
Parameters
- charCode
- Char
The UTF-16 character code to send.
- Attributes
Remarks
Send the given UTF-16 character to the current input connection. Most characters will be delivered simply by calling InputConnection#commitText InputConnection.commitText()
with the character; some, however, may be handled different. In particular, the enter character ('\n') will either be delivered as an action code or a raw key event, as appropriate. Consider this as a convenience method for IMEs that do not have a full implementation of actions; a fully complying IME will decide of the right action for each event and will likely never call this method except maybe to handle events coming from an actual hardware keyboard.
Java documentation for android.inputmethodservice.InputMethodService.sendKeyChar(char)
.
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.