Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Guides
Customizing the Keyboard

Customizing the Keyboard (RPC v3.0+)

The ChoiceSetManager used to customize the keyboard is currently missing from the SDL JavaScript Suite. This will be addressed in a future release. However you can still customize the keyboard through the SetGlobalProperties RPC.

Setting Keyboard Properties

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).setKeyboardLayout(SDL.rpc.enums.KeyboardLayout.AZERTY);
const setGlobalProperties = new SDL.rpc.messages.SetGlobalProperties().setKeyboardProperties(keyboardProperties);
const response = await sdlManager.sendRpc(setGlobalProperties).catch(error => error); // If there's an error, catch it and return it
if(response instanceof SDL.rpc.RpcResponse && response.getSuccess()) {
    //keyboard properties updated
} else {
    // Handle Error here
}

View on GitHub.com
Previous Section Next Section