Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

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

On this page

KMManager class

Summary

The KMManager class provides methods for controlling Keyman Engine

Syntax

KMManager.methodName()
KMManager.CONSTANT

Description

The KMManager is the core class which provides most of the methods and constants you will need to develop your apps with Keyman Engine

Methods

addKeyboard()
adds a keyboard into the keyboards list
addKeyboardDownloadEventListener()
adds the specified listener into the list of keyboard download event listeners
addKeyboardEventListener()
adds the specified listener into the list of keyboard event listeners
canAddNewKeyboard()
returns whether adding a new keyboard is enabled in the keyboard picker menu
createInputView()
creates the input view to be used in InputMethodService
getCurrentKeyboardIndex()
returns index number of the current keyboard in keyboards list
getCurrentKeyboardInfo()
returns information dictionary of the current keyboard
getFontTypeface()
creates a new typeface from the specified font filename
getGlobeKeyAction()
returns the action type of the 'Globe' key
getKeyboardFontFilename() (Deprecated)
use getKeyboardTextFontFilename or getKeyboardOskFontFilename instead
getKeyboardFontTypeface() (Deprecated)
use getKeyboardTextFontTypeface or getKeyboardOskFontTypeface instead
getKeyboardHeight()
returns the height of the keyboard frame
getKeyboardIndex()
returns index number of the specified keyboard in keyboards list
getKeyboardInfo()
returns information dictionary of the specified keyboard
getKeyboardsList()
returns the array of keyboards list
getKeyboardOskFontFilename()
returns the selected keyboard's OSK font filename
getKeyboardOskFontTypeface()
creates a new typeface from the selected keyboard's OSK font
getKeyboardState()
returns the specified keyboard's state
getKeyboardTextFontFilename()
returns the selected keyboard's text font filename
getKeyboardTextFontTypeface()
creates a new typeface from the selected keyboard's text font
getLatestKeyboardFileVersion()
returns the specified keyboard's latest file version number
getVersion()
returns the version number of Keyman Engine
hasConnection()
returns whether the device has active network connection
initialize()
initializes the Keyman manager
isDebugMode()
returns whether debugging of Keyman Engine is enabled
isHelpBubbleEnabled()
returns whether the help bubble is enabled
keyboardExists()
returns whether the specified keyboard exists in keyboards list
onConfigurationChanged()
performs necessary actions in an InputMethodService's onConfigurationChanged()
onDestroy()
performs necessary actions in an InputMethodService's onDestroy()
onPause()
performs necessary actions in an Activity's onPause()
onResume()
performs necessary actions in an Activity's onResume()
onStartInput()
performs necessary actions in an InputMethodService's onStartInput()
removeKeyboard()
removes the keyboard at specified position from the keyboards list
removeKeyboardDownloadEventListener()
removes the specified listener from the list of keyboard download event listeners
removeKeyboardEventListener()
removes the specified listener from the list of keyboard event listeners
setCanAddNewKeyboard()
sets whether adding a new keyboard is allowed in the keyboard picker menu
setDebugMode()
enables or disables debugging of Keyman Engine
setGlobeKeyAction()
sets an action type for the 'Globe' key
setHelpBubbleEnabled()
enables or disables the help bubble
setKeyboard()
sets the keyboard to be used
setKeyboardPickerFont()
sets the font for the keyboard picker menu
setKeymanLicense()
sets the developer license/key pair to unlock Keyman Engine
setShouldAllowSetKeyboard()
sets whether Keyman Engine allows setting a keyboard other than the default keyboard
setShouldCheckKeyboardUpdates()
sets whether Keyman Engine should check for keyboard updates
shouldAllowSetKeyboard()
returns whether Keyman Engine allows setting a keyboard other than the default keyboard
shouldCheckKeyboardUpdates()
returns whether Keyman Engine should check for keyboard updates
showKeyboardPicker()
displays the keyboard picker menu
showLanguageList()
displays the language list
switchToNextKeyboard()
loads the next available keyboard in keyboards list
updateSelectionRange()
updates the selection range of the current context
updateText()
updates the current context with the specified text