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

On this page

KMManager.getKeyboardIndex()

Summary

The getKeyboardIndex() method returns index number of the specified keyboard in keyboards list.

Syntax

KMManager.getKeyboardIndex(Context context, String keyboardID, String languageID)

Parameters

context
The context.
keyboardID
ID of the keyboard.
languageID
ID of the associated language.

Returns

Returns 0-based index number of the specified keyboard if exists in keyboards list, -1 otherwise.

Description

Use this method to get the index number of the keyboard with given keyboard ID and language ID if it exists in keyboards list.

Examples

Example: Using getKeyboardIndex()

The following script illustrate the use of getKeyboardIndex():

    int index = KMManager.getKeyboardIndex(this, "tamil99m", "tam");

See also