If you present keyboards in your app – such as in searchable interactions or another custom keyboard – you may wish to customize the keyboard for your users. The best way to do this is through the ScreenManager
. For more information presenting keyboards, see the Popup Keyboards section.
You can modify the language of the keyboard to change the characters that are displayed.
const keyboardProperties = new SDL.rpc.structs.KeyboardProperties() .setLanguage(SDL.rpc.enums.Language.HE_IL) // Set to Israeli Hebrew .setKeyboardLayout(SDL.rpc.enums.KeyboardLayout.AZERTY); // Set to AZERTY sdlManager.getScreenManager().setKeyboardConfiguration(keyboardProperties);
While there are other keyboard properties available on KeyboardProperties
, these will be overridden by the screen manager. The keypressMode
must be a specific configuration for the screen manager's callbacks to work properly. The limitedCharacterList
, autoCompleteText
, and autoCompleteList
will be set on a per-keyboard basis when calling sdlManager.getScreenManager.presentKeyboard(...)
, should custom keyboard properties be set.