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

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 (readwrite, strong, nonatomic) 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 (readwrite, strong, nonatomic) SDLTriggerSource _Nonnull triggerSource;

Swift

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