Configuration of on-screen keyboard (if available)
Create a Keyboard Properties RPC object
- (nonnull instancetype)
initWithLanguage:(nullable SDLLanguage)language
layout:(nullable SDLKeyboardLayout)layout
keypressMode:(nullable SDLKeypressMode)keypressMode
limitedCharacterList:(nullable NSArray<NSString *> *)limitedCharacterList
autoCompleteText:(nullable NSString *)autoCompleteText
autoCompleteList:(nullable NSArray<NSString *> *)autoCompleteList;
init(language: SDLLanguage?, layout: SDLKeyboardLayout?, keypressMode: SDLKeypressMode?, limitedCharacterList: [String]?, autoCompleteText: String?, autoCompleteList: [String]?)
The language to set the keyboard to
The layout of the keyboard
The mode of keypresses to use
A list of characters restricting what the user is allowed to press
A string to show to user to complete what they are typing
A list of strings to show the user to complete what they are typing.
The RPC object
Convenience init with all properties.
- (nonnull instancetype)
initWithLanguage:(nullable SDLLanguage)language
keyboardLayout:(nullable SDLKeyboardLayout)keyboardLayout
keypressMode:(nullable SDLKeypressMode)keypressMode
limitedCharacterList:(nullable NSArray<NSString *> *)limitedCharacterList
autoCompleteList:(nullable NSArray<NSString *> *)autoCompleteList;
init(language: SDLLanguage?, keyboardLayout: SDLKeyboardLayout?, keypressMode: SDLKeypressMode?, limitedCharacterList: [String]?, autoCompleteList: [String]?)
- language
- keyboardLayout
- keypressMode
- limitedCharacterList
- autoCompleteList
A SDLKeyboardProperties object
- (nonnull instancetype)
initWithLanguage:(nullable SDLLanguage)language
keyboardLayout:(nullable SDLKeyboardLayout)keyboardLayout
keypressMode:(nullable SDLKeypressMode)keypressMode
limitedCharacterList:(nullable NSArray<NSString *> *)limitedCharacterList
autoCompleteList:(nullable NSArray<NSString *> *)autoCompleteList
maskInputCharacters:(nullable SDLKeyboardInputMask)maskInputCharacters
customKeys:(nullable NSArray<NSString *> *)customKeys;
init(language: SDLLanguage?, keyboardLayout: SDLKeyboardLayout?, keypressMode: SDLKeypressMode?, limitedCharacterList: [String]?, autoCompleteList: [String]?, maskInputCharacters: SDLKeyboardInputMask?, customKeys: [String]?)
- language
- keyboardLayout
- keypressMode
- limitedCharacterList
- autoCompleteList
- maskInputCharacters
- customKeys
A SDLKeyboardProperties object
The keyboard language
Optional
@property (nonatomic, strong, nullable) SDLLanguage language;
var language: SDLLanguage? { get set }
Desired keyboard layout
Optional
@property (nonatomic, strong, nullable) SDLKeyboardLayout keyboardLayout;
var keyboardLayout: SDLKeyboardLayout? { get set }
Desired keypress mode.
If omitted, this value will be set to RESEND_CURRENT_ENTRY.
Optional
@property (nonatomic, strong, nullable) SDLKeypressMode keypressMode;
var keypressMode: SDLKeypressMode? { get set }
Array of keyboard characters to enable. All omitted characters will be greyed out (disabled) on the keyboard. If omitted, the entire keyboard will be enabled.
Optional
@property (nonatomic, strong, nullable) NSArray<NSString *> *limitedCharacterList;
var limitedCharacterList: [String]? { get set }
Deprecated, use autoCompleteList instead. {“string_min_length”: 1, “string_max_length”: 1000}
@deprecated in SmartDeviceLink 6.0.0 @added in SmartDeviceLink 3.0.0
@property (nonatomic, strong, nullable) NSString *autoCompleteText;
var autoCompleteText: String? { get set }
Allows an app to show a list of possible autocomplete suggestions as the user types
Optional, 1-100 items, max string length 1000 characters (note that these may not all be displayed on the screen)
@property (nonatomic, strong, nullable) NSArray<NSString *> *autoCompleteList;
var autoCompleteList: [String]? { get set }
Allows an app to mask entered characters on HMI
@added in SmartDeviceLink 7.1.0
@property (nonatomic, strong, nullable) SDLKeyboardInputMask maskInputCharacters;
var maskInputCharacters: SDLKeyboardInputMask? { get set }
Array of special characters to show in customizable keys. If omitted, keyboard will show default special characters {“array_min_size”: 1, “array_max_size”: 10, “string_min_length”: 1, “string_max_length”: 1}
@added in SmartDeviceLink 7.1.0
@property (nonatomic, strong, nullable) NSArray<NSString *> *customKeys;
var customKeys: [String]? { get set }