Constructor
new Keyboard(params)
OnTouchEventResponseļ¼
Name | Type | Description |
---|---|---|
type | string | The event type, which is read-only. Valid values: touchstart , touchend , touchcancel . |
key | string | The key of the key, which is read-only. |
code | string | The code of the key, which is read-only. |
Example
new Keyboard({});
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Methods
show() → {void}
This API is used to display the virtual keyboard.
Returns:
- Type
- void
hide() → {void}
This API is used to hide the virtual keyboard.
Returns:
- Type
- void
destroy() → {void}
This API is used to terminate the virtual keyboard and delete the corresponding node (to use the virtual keyboard again, you need to create a new one).
Returns:
- Type
- void