Keyboard.toggleVisible()

Overview

Show or hide the software keyboard. Allows you control over whether the keyboard displays when a manual-entry text field is selected.

Hiding the software keyboard does not disable physical keys, and the keyboard can still be shown if the user presses the keyboard icon.

Android only

Format

Keyboard.toggleVisible(keyboardVisible);

Parameter Description Type Required
keyboardVisible Setting this parameter to true shows the software keyboard; false hides the software keyboard. Boolean Required

Example

Copy
/* Show the device's onscreen keyboard.
 */
 Keyboard.toggleVisible(true);