Voice commands available for the user to speak and be recognized by the IVI’s voice recognition engine.
The strings the user can say to activate this voice command
@property (nonatomic, copy, readonly) NSArray<NSString *> *_Nonnull voiceCommands;
var voiceCommands: [String] { get }
The handler that will be called when the command is activated
@property (nonatomic, copy, readonly, nullable) SDLVoiceCommandSelectionHandler handler;
var handler: SDLVoiceCommandSelectionHandler? { get }
Convenience init
- (nonnull instancetype)
initWithVoiceCommands:(nonnull NSArray<NSString *> *)voiceCommands
handler:(nonnull SDLVoiceCommandSelectionHandler)handler;
init(voiceCommands: [String], handler: @escaping SDLVoiceCommandSelectionHandler)
The strings the user can say to activate this voice command
The handler that will be called when the command is activated
An SDLVoiceCommand object