KMManager.canAddNewKeyboard()
Summary
The canAddNewKeyboard()
method returns whether adding a new keyboard is enabled in the keyboard picker menu.
Syntax
KMManager.canAddNewKeyboard()
Returns
Returns true
if adding a new keyboard is enabled, false
otherwise.
Description
Use this method to check if '+' (add new keyboard) button is enabled in the keyboard picker menu.
Examples
Example: Using canAddNewKeyboard()
The following script illustrate the use of canAddNewKeyboard()
:
if (KMManager.canAddNewKeyboard()) {
// add new keyboard button is enabled
}