KMManager.getKeyboardsList()
Summary
The getKeyboardsList()
method returns the array of keyboards list.
Syntax
KMManager.getKeyboardsList(Context context)
Parameters
context
- The context.
Returns
Returns keyboards list as ArrayList<HashMap<String key, String value>>
if it exists, null
otherwise.
Description
Use this method to get details of all keyboard's in keyboards menu.
Examples
Example: Using getKeyboardsList()
The following script illustrate the use of getKeyboardsList()
:
ArrayList<HashMap<String, String>> keyboardsList = KMManager.getKeyboardsList(this);
if (keyboardsList != null) {
int length = keyboardsList.size();
for (int i = 0; i < length; i++) {
HashMap<String, String> keyboardInfo = keyboardsList.get(i);
String keyboardId = keyboardInfo.get(KMManager.KMKey_KeyboardID);
String languageId = keyboardInfo.get(KMManager.KMKey_LanguageID);
String keyboardName = keyboardInfo.get(KMManager.KMKey_KeyboardName);
String languageName = keyboardInfo.get(KMManager.KMKey_LanguageName);
String font = keyboardInfo.get(KMManager.KMKey_Font);
String oskFont = keyboardInfo.get(KMManager.KMKey_OskFont);
//
}
}