Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLVoiceCommand Class Reference

Section Contents

Overview

Undocumented

voiceCommands

The strings the user can say to activate this voice command

Objective-C

@property (readonly, copy, nonatomic)
    NSArray<NSString *> *_Nonnull voiceCommands;

Swift

var voiceCommands: [String] { get }

handler

The handler that will be called when the command is activated

Objective-C

@property (readonly, copy, nonatomic, nullable)
    SDLVoiceCommandSelectionHandler handler;

Swift

var handler: SDLVoiceCommandSelectionHandler? { get }

-initWithVoiceCommands:handler:

Undocumented

Objective-C

- (instancetype)initWithVoiceCommands:(NSArray<NSString *> *)voiceCommands handler:(SDLVoiceCommandSelectionHandler)handler;

Swift

init(voiceCommands: [String], handler: @escaping SDLVoiceCommandSelectionHandler)
View on GitHub.com
Previous Section Next Section