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
SDLOnCommand

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 }
View on GitHub.com
Previous Section Next Section