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

You are viewing an old version of this documentation. Click here to open the current version, 17.0.

KMManager.getLatestKeyboardFileVersion()

Summary

The getLatestKeyboardFileVersion() method returns the specified keyboard's latest file version number.

Syntax

KMManager.getLatestKeyboardFileVersion(Context context, String keyboardID)

Parameters

context
The context.
keyboardID
ID of the keyboard.

Returns

Returns the specified keyboard's latest file version number as String if the keyboard exists, null otherwise.

Description

Use this method to get the latest file version number of the specified keyboard if it exists in assets/languages/ folder.

Examples

Example: Using getLatestKeyboardFileVersion()

The following script illustrate the use of getLatestKeyboardFileVersion():

    String latestVersion = getLatestKeyboardFileVersion(this, "tamil99m");
    if (latestVersion != null) {
        // If we assume that there are 2 tamil99m keyboard files in assets/languages/ folder
        // with filenames; tamil99m-1.0.js and tamil99m-1.1.js
        // then latestVersion = "1.1"
    }
    else {
        // This keyboard does not exist in assets/languages/ folder!
    }