spiegel-keyman/android/docs/engine/KMManager/shouldAllowSetKeyboard.md
2024-10-31 10:08:17 +07:00

852 B

title
KMManager.shouldAllowSetKeyboard()

Summary

The shouldAllowSetKeyboard() method returns whether Keyman Engine allows setting a keyboard other than the default keyboard.

Syntax

KMManager.shouldAllowSetKeyboard()

Returns

Returns true if Keyman Engine allows setting a keyboard, false otherwise.

Description

Use this method to check if Keyman Engine allows setting a keyboard other than the default keyboard.

Examples

Example: Using shouldAllowSetKeyboard()

The following script illustrate the use of shouldAllowSetKeyboard():

    if (KMManager.shouldAllowSetKeyboard()) {
        // setting a keyboard is allowed
    }
    else {
        // setting a keyboard is not allowed
    }

See also