Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
iOS Documentation
SDLChoiceSetDelegate

SDLChoiceSetDelegate Protocol Reference

Section Contents

Overview

Delegate for the SDLChoiceSet. Contains methods that get called when an action is taken on a choice cell.

-choiceSet:didSelectChoice:withSource:atRowIndex:

Delegate method called after a choice set item is selected

Objective-C

- (void)choiceSet:(nonnull SDLChoiceSet *)choiceSet
    didSelectChoice:(nonnull SDLChoiceCell *)choice
         withSource:(nonnull SDLTriggerSource)source
         atRowIndex:(NSUInteger)rowIndex;

Swift

func choiceSet(_ choiceSet: SDLChoiceSet, didSelectChoice choice: SDLChoiceCell, withSource source: SDLTriggerSource, atRowIndex rowIndex: UInt)

Parameters

choiceSet

The choice set displayed

choice

The item selected

source

The trigger source

rowIndex

The row of the selected choice

-choiceSet:didReceiveError:

Delegate method called on an error

Objective-C

- (void)choiceSet:(nonnull SDLChoiceSet *)choiceSet
    didReceiveError:(nonnull NSError *)error;

Swift

func choiceSet(_ choiceSet: SDLChoiceSet, didReceiveError error: Error)

Parameters

choiceSet

The choice set

error

The error

View on GitHub.com
Previous Section Next Section