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

SDLChoiceSetDelegate Protocol Reference

Section Contents

Overview

Delegate for the 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