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 Class Reference

Section Contents


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


SDLAddCommand SDLDeleteCommand SDLDeleteSubMenu


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.


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


var cmdID: NSNumber & SDLInt { get set }


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


@property (nonatomic, strong) SDLTriggerSource _Nonnull triggerSource;


var triggerSource: SDLTriggerSource { get set }
View on GitHub.com
Previous Section Next Section