Keyboard Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | Keyboard.h |
– onKeyboard:down:
required method
Trigger a key event of the cloud keyboard.
- (void)onKeyboard:(NSInteger)keycode down:(BOOL)downParameters
keycode |
The keycode |
|---|---|
down |
Valid values: |
Discussion
Trigger a key event of the cloud keyboard.
Declared In
Keyboard.h
– onKeyboard:down:isLeft:
required method
Trigger a key event of the cloud keyboard. Differentiate between the left and right keys of the keyboard.
- (void)onKeyboard:(NSInteger)keycode down:(BOOL)down isLeft:(BOOL)isLeftParameters
keycode |
The keycode. Please refer to WindowsKeyEvent.h for the definition of key codes. |
|---|---|
down |
Valid values: |
isLeft |
Used to distinguish between left and right keys of the keyboard: |
Discussion
Trigger a key event of the cloud keyboard. Differentiate between the left and right keys of the keyboard.
Declared In
Keyboard.h
– checkKeyboardCapsLock:
required method
Query the capitalization status of the cloud virtual keyboard.
- (void)checkKeyboardCapsLock:(void ( ^ ) ( int retCode ))finishBlkParameters
finishBlk |
retCode 0 lower,1 upper |
|---|
Discussion
Query the capitalization status of the cloud virtual keyboard.
Declared In
Keyboard.h
– resetKeyboardCapsLock
required method
Reset the capitalization status (to lowercase) of the cloud virtual keyboard.
- (void)resetKeyboardCapsLockDiscussion
Reset the capitalization status (to lowercase) of the cloud virtual keyboard.
Declared In
Keyboard.h
– resetKeyboard
required method
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)resetKeyboardDiscussion
Reset the key status of the cloud keyboard.
This API is used to release all keys when there are stuck keys on the keyboard.
Declared In
Keyboard.h