summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLChoiceSetDelegate.h
blob: 7ff4b0b401a9b1649314e18de51ba74c7d1e8b32 (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
32
33
34
35
36
37
//
//  SDLChoiceSetDelegate.h
//  SmartDeviceLink
//
//  Created by Joel Fischer on 5/21/18.
//  Copyright © 2018 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SDLTriggerSource.h"

@class SDLChoiceCell;
@class SDLChoiceSet;

NS_ASSUME_NONNULL_BEGIN

/// Delegate for the the SDLChoiceSet.
@protocol SDLChoiceSetDelegate <NSObject>

/// Delegate method called after a choice set item was selected
///
/// @param choiceSet The choice set displayed
/// @param choice The item selected
/// @param source The trigger source
/// @param rowIndex The row of the selected choice
- (void)choiceSet:(SDLChoiceSet *)choiceSet didSelectChoice:(SDLChoiceCell *)choice withSource:(SDLTriggerSource)source atRowIndex:(NSUInteger)rowIndex;

/// Delegate method called on an error
///
/// @param choiceSet TSDLAudioStreamManager.hhe choice set displayed
/// @param error The error
- (void)choiceSet:(SDLChoiceSet *)choiceSet didReceiveError:(NSError *)error;

@end

NS_ASSUME_NONNULL_END