public interface KeyboardListener
| Modifier and Type | Method and Description |
|---|---|
void |
onKeyboardDidAbortWithReason(KeyboardEvent event)
The keyboard session aborted.
|
void |
onKeyboardDidSendEvent(KeyboardEvent event,
String currentInputText)
Implement this to be notified of all events occurring on the keyboard
|
void |
onKeyboardDidUpdateInputMask(KeyboardEvent event) |
void |
onUserDidSubmitInput(String inputText,
KeyboardEvent event)
The keyboard session completed with some input.
|
void |
updateAutocompleteWithInput(String currentInputText,
KeyboardAutocompleteCompletionListener keyboardAutocompleteCompletionListener)
Implement this in order to provide a custom keyboard configuration to just this keyboard.
|
void |
updateCharacterSetWithInput(String currentInputText,
KeyboardCharacterSetCompletionListener keyboardCharacterSetCompletionListener)
Implement this if you wish to update the limitedCharacterSet as the user updates their input.
|
void onUserDidSubmitInput(String inputText, KeyboardEvent event)
This will be sent upon ENTRY_SUBMITTED or ENTRY_VOICE. If the event is ENTRY_VOICE, the user requested to start a voice session in order to submit input to this keyboard. This MUST be handled by you. Start an Audio Pass Thru session if supported.
inputText - - The submitted input text on the keyboardevent - - ENTRY_SUBMITTED if the user pressed the submit button on the keyboard, ENTRY_VOICE
if the user requested that a voice session beginvoid onKeyboardDidAbortWithReason(KeyboardEvent event)
This will be sent if the keyboard event ENTRY_CANCELLED or ENTRY_ABORTED is sent
event - - ENTRY_CANCELLED if the user cancelled the keyboard input, or ENTRY_ABORTED if
the system aborted the input due to a higher priority eventvoid updateAutocompleteWithInput(String currentInputText, KeyboardAutocompleteCompletionListener keyboardAutocompleteCompletionListener)
currentInputText - - The user's full current input textkeyboardAutocompleteCompletionListener - - A listener to update the autoCompleteTextvoid updateCharacterSetWithInput(String currentInputText, KeyboardCharacterSetCompletionListener keyboardCharacterSetCompletionListener)
currentInputText - - The user's full current input textkeyboardCharacterSetCompletionListener - - A listener to update the limitedCharacterSetvoid onKeyboardDidSendEvent(KeyboardEvent event, String currentInputText)
event - - The event that occurredcurrentInputText - - The user's full current input textvoid onKeyboardDidUpdateInputMask(KeyboardEvent event)