A choice is an option which a user can select either via the menu or via voice recognition (VR) during an application initiated interaction.
Since RPC 1.0
Constructs a newly allocated SDLChangeRegistration object with the required parameters
- (nonnull instancetype)initWithId:(UInt16)choiceId
menuName:(nonnull NSString *)menuName
vrCommands:(nullable NSArray<NSString *> *)vrCommands;
init(id choiceId: UInt16, menuName: String, vrCommands: [String]?)
the application-scoped identifier that uniquely identifies this choice
text which appears in menu, representing this choice
vr synonyms for this choice
An instance of the SDLChangeRegistration class.
Constructs a newly allocated SDLChangeRegistration object with all parameters
- (nonnull instancetype)initWithId:(UInt16)choiceId
menuName:(nonnull NSString *)menuName
vrCommands:(nullable NSArray<NSString *> *)vrCommands
image:(nullable SDLImage *)image
secondaryText:(nullable NSString *)secondaryText
secondaryImage:(nullable SDLImage *)secondaryImage
tertiaryText:(nullable NSString *)tertiaryText;
init(id choiceId: UInt16, menuName: String, vrCommands: [String]?, image: SDLImage?, secondaryText: String?, secondaryImage: SDLImage?, tertiaryText: String?)
the application-scoped identifier that uniquely identifies this choice
text which appears in menu, representing this choice
vr synonyms for this choice
the image of the choice
secondary text to display; e.g. address of POI in a search result entry
secondary image for choice
tertiary text to display; e.g. distance to POI for a search result entry
An instance of the SDLChangeRegistration class.
The application-scoped identifier that uniquely identifies this choice
Required, Integer 0 - 65535
@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull choiceID;
var choiceID: NSNumber & SDLInt { get set }
Text which appears in menu, representing this choice
Required, Max string length 500 chars
@property (nonatomic, strong) NSString *_Nonnull menuName;
var menuName: String { get set }
VR synonyms for this choice
Optional, Array of Strings, Array length 1 - 100, Max String length 99 chars
@discussion, VR commands are optional beginning with SDL Core v.5.0. They are required for previous versions.
@property (nonatomic, strong, nullable) NSArray<NSString *> *vrCommands;
var vrCommands: [String]? { get set }
The image of the choice
Optional
@property (nonatomic, strong, nullable) SDLImage *image;
var image: SDLImage? { get set }
Secondary text to display; e.g. address of POI in a search result entry
Optional, Max String length 500 chars
@property (nonatomic, strong, nullable) NSString *secondaryText;
var secondaryText: String? { get set }
Tertiary text to display; e.g. distance to POI for a search result entry
Optional, Max String length 500 chars
@property (nonatomic, strong, nullable) NSString *tertiaryText;
var tertiaryText: String? { get set }
Secondary image for choice
Optional
@property (nonatomic, strong, nullable) SDLImage *secondaryImage;
var secondaryImage: SDLImage? { get set }