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
SDLDeleteCommand

SDLDeleteCommand Class Reference

Section Contents

Overview

Removes a command from the Command Menu

HMI Status Requirements:
HMILevel: FULL, LIMITED or BACKGROUND
AudioStreamingState: N/A
SystemContext: Should not be attempted when VRSESSION or MENU

Since SmartDeviceLink 1.0
see SDLAddCommand SDLAddSubMenu SDLDeleteSubMenu

-initWithId:

Convenience init to remove a command from the menu

Objective-C

- (nonnull instancetype)initWithId:(UInt32)commandId;

Swift

init(id commandId: UInt32)

Parameters

commandId

The Command ID that identifies the Command to be deleted from Command Menu

Return Value

An SDLDeleteCommand object

cmdID

the Command ID that identifies the Command to be deleted from Command Menu @discussion an NSNumber value representing Command ID

Notes: Min Value: 0; Max Value: 2000000000

Objective-C

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

Swift

var cmdID: NSNumber & SDLInt { get set }
View on GitHub.com
Previous Section Next Section