Keyboard.enable()
Overview
Allows the software keyboard to be enabled or disabled. Disable the keyboard to prevent accidental keypresses on a keyboard when you use speech-to-text.
Android only
Format
Keyboard.enable(keyboardEnable);
Parameter | Description | Type | Required |
---|---|---|---|
keyboardEnable | Setting this parameter to true enables the software keyboard; false disables the software keyboard. |
Boolean | Required |
Example
Copy
/* The device's software keyboard is enabled.
*/
Keyboard.enable(true);