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

SDLCreateInteractionChoiceSet Class Reference

Section Contents

Overview

Creates a Choice Set which can be used in subsequent SDLPerformInteraction Operations.

HMILevel needs to be FULL, LIMITED or BACKGROUND

Before a perform interaction is sent you MUST wait for the success from the CreateInteractionChoiceSet RPC.

If you do not wait the system may not recognize the first utterance from the user.

@since SDL 1.0

See

SDLDeleteInteractionChoiceSet SDLPerformInteraction

-initWithId:choiceSet:

Undocumented

Objective-C

- (instancetype)initWithId:(UInt32)choiceId choiceSet:(NSArray<SDLChoice *> *)choiceSet;

Swift

init(id choiceId: UInt32, choiceSet: [SDLChoice])

interactionChoiceSetID

A unique ID that identifies the Choice Set

Required, Integer, 0 - 2,000,000,000

Objective-C

@property (readwrite, strong, nonatomic)
    NSNumber<SDLInt> *_Nonnull interactionChoiceSetID;

Swift

var interactionChoiceSetID: NSNumber & SDLInt { get set }

choiceSet

Array of choices, which the user can select by menu or voice recognition

Required, SDLChoice, Array size 1 - 100

Objective-C

@property (readwrite, strong, nonatomic)
    NSArray<SDLChoice *> *_Nonnull choiceSet;

Swift

var choiceSet: [SDLChoice] { get set }
View on GitHub.com
Previous Section Next Section