Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 17.0Version 16.0 (current version)Version 15.0Version 14.0 (home page)Version 13.0 (home page)Version 12.0 (home page)Version 11.0 (home page)Version 10.0 (home page)Version 2.0 (home page)

Index

On this page

KMManager.canRemoveKeyboard()


Summary

The canRemoveKeyboard() method returns whether removing a keyboard is enabled, like in the keyboard picker menu.

Syntax

KMManager.canRemoveKeyboard()

Returns

Returns true if removing a keyboard is enabled, false otherwise.

Description

Use this method to check if a keyboard can be removed. If enabled, you can long-press on a row in the keyboard picker menu to remove a keyboard.

Examples

Example: Using canRemoveKeyboard()

The following script illustrates the use of canRemoveKeyboard():

    if (KeyboardController.getInstance().get().size() > 1 && KMManager.canRemoveKeyboard()) {
      // Remove the second keyboard
      KMManager.removeKeyboard(this, 1);
    }

See also