// // SDLChoiceSetDelegate.h // SmartDeviceLink // // Created by Joel Fischer on 5/21/18. // Copyright © 2018 smartdevicelink. All rights reserved. // #import #import "SDLTriggerSource.h" @class SDLChoiceCell; @class SDLChoiceSet; NS_ASSUME_NONNULL_BEGIN /// Delegate for the SDLChoiceSet. Contains methods that get called when an action is taken on a choice cell. @protocol SDLChoiceSetDelegate /// Delegate method called after a choice set item is 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 The choice set /// @param error The error - (void)choiceSet:(SDLChoiceSet *)choiceSet didReceiveError:(NSError *)error; @end NS_ASSUME_NONNULL_END