public interface Keyboard
Modifier and Type | Method and Description |
---|---|
void |
checkKeyboardCapsLock(AsyncCallback<java.lang.String> callback)
Query the capitalization status of the cloud virtual keyboard.
|
void |
onKeyboard(int keycode,
boolean down)
Trigger a key event of the cloud keyboard.
|
void |
onKeyboard(int keycode,
boolean down,
boolean isLeft)
Trigger a key event of the cloud keyboard.
|
void |
resetKeyboard()
Reset the key status of the cloud keyboard.
This API is used to release all keys when there are stuck keys on the keyboard. |
void |
resetKeyboardCapsLock()
Reset the capitalization status (to lowercase) of the cloud virtual keyboard.
|
void onKeyboard(int keycode, boolean down)
keycode
- The keycodedown
- Valid values: `true`: Press; `false`: Release.void onKeyboard(int keycode, boolean down, boolean isLeft)
keycode
- The keycodedown
- Valid values: `true`: Press; `false`: Release.isLeft
- Used to distinguish between left and right keys of the keyboard: `true`: Left; `false` : Right.void checkKeyboardCapsLock(AsyncCallback<java.lang.String> callback)
callback
- Asynchronous callback object for returning results.void resetKeyboardCapsLock()
void resetKeyboard()