blob: 252fbaeae45e97ccb010db696194f68bbaae5134 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//
// SDLVoiceCommand.h
// SmartDeviceLink
//
// Created by Joel Fischer on 4/9/18.
// Copyright © 2018 smartdevicelink. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef void(^SDLVoiceCommandSelectionHandler)(void);
@interface SDLVoiceCommand : NSObject
/**
The strings the user can say to activate this voice command
*/
@property (copy, nonatomic, readonly) NSArray<NSString *> *voiceCommands;
/**
The handler that will be called when the command is activated
*/
@property (copy, nonatomic, readonly, nullable) SDLVoiceCommandSelectionHandler handler;
- (instancetype)initWithVoiceCommands:(NSArray<NSString *> *)voiceCommands handler:(SDLVoiceCommandSelectionHandler)handler;
@end
NS_ASSUME_NONNULL_END
|