SDLOnCommand Class Reference

Section Contents

Overview

This is called when a command was selected via VR after pressing the PTT button, or selected from the menu after pressing the MENU button.

Note: The sequence of SDLOnHMIStatus and SDLOnCommand notifications for user-initiated interactions is indeterminate.

@since SDL 1.0

See

SDLAddCommand SDLDeleteCommand SDLDeleteSubMenu

cmdID

The command ID of the command the user selected. This is the command ID value provided by the application in the SDLAddCommand operation that created the command.

Objective-C

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

Swift

var cmdID: NSNumber & SDLInt { get set }

triggerSource

Indicates whether command was selected via voice or via a menu selection (using the OK button).

Objective-C

@property (nonatomic, strong) SDLTriggerSource _Nonnull triggerSource;

Swift

var triggerSource: SDLTriggerSource { get set }