Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 14.0Version 13.0 (current release)Version 12.0Version 11.0Version 10.0Version 2.0

Index

On this page

KMManager.getCurrentKeyboardIndex()

Summary

The getCurrentKeyboardIndex() method returns index number of the current keyboard in keyboards list.

Syntax

KMManager.getCurrentKeyboardIndex(Context context)

Parameters

context
The context.

Returns

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

Description

Use this method to get the index number of the currently selected keyboard if it exists in keyboards list.

Examples

Example: Using getCurrentKeyboardIndex()

The following script illustrate the use of getCurrentKeyboardIndex():

    int index = KMManager.getCurrentKeyboardIndex(this);

See also