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)down

Parameters

keycode

The keycode

down

Valid values: true: Press; false: Release.

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)isLeft

Parameters

keycode

The keycode. Please refer to WindowsKeyEvent.h for the definition of key codes.

down

Valid values: true: Press; false: Release.

isLeft

Used to distinguish between left and right keys of the keyboard: true: Left; false : Right.

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 ))finishBlk

Parameters

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)resetKeyboardCapsLock

Discussion

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)resetKeyboard

Discussion

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