Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

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

Index

On this page

KMManager.setShouldAllowSetKeyboard()

Summary

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

Syntax

KMManager.setShouldAllowSetKeyboard(boolean value)

Parameters

value
If false, Keyman Engine will not allow setting a keyboard.

Description

Use this method to enable or disable setting a keyboard other than the default keyboard. If set to false Keyman Engine will immediately load the default keyboard, and ignore calls to setKeyboard method. It is particularly useful if used with Google Play Licensing service in order to put the Keyman on-screen keyboard in a locked state if the paid app is unlicensed.

Examples

Example: Using setShouldAllowSetKeyboard()

The following script illustrate the use of setShouldAllowSetKeyboard():

    // Put Keyman on-screen keyboard in locked state if the app is unlicensed.
    KMManager.setShouldAllowSetKeyboard(false);

See also