Manager class
Summary
The Manager class provides methods for controlling Keyman Engine
Syntax
Manager.shared.methodName()
Description
The Manager 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
canAddNewKeyboards
- returns whether adding a new keyboard is enabled in the keyboard picker menu
currentKeyboard()
- returns info for the currently selected keyboard
dismissKeyboardPicker()
- hides the list of keyboards
downloadKeyboard()
- asynchronously fetches the keyboard files
fontNameForKeyboard()
- returns the font name for the given keyboard ID and language ID
keyboardHeight()
- returns the height of the keyboard
parseKMP()
- install the keyboards from a KMP keyboard package
preloadFiles()
- preloads the JS and font files required for a keyboard
removeKeyboard()
- removes the keyboard at specified position from the keyboards list
setKeyboard()
- sets the keyboard to be used
showKeyboardPicker()
- displays a list of available keyboards and allows a user to add/remove keyboards
stateForKeyboard()
- returns the current state for a keyboard
switchToNextKeyboard()
- loads the next available keyboard in keyboards list