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
Documentation
SDLOnUpdateSubMenu

SDLOnUpdateSubMenu Class Reference

Section Contents

Overview

This notification tells an app to update the AddSubMenu or its ‘sub’ AddCommand and AddSubMenus with the requested data

@since SDL 7.0

-initWithMenuID:

Objective-C

- (nonnull instancetype)initWithMenuID:(UInt32)menuID;

Swift

init(menuID: UInt32)

Parameters

menuID

- @(menuID)

Return Value

A SDLOnUpdateSubMenu object

-initWithMenuID:updateSubCells:

Objective-C

- (nonnull instancetype)initWithMenuID:(UInt32)menuID
                        updateSubCells:
                            (nullable NSNumber<SDLBool> *)updateSubCells;

Swift

init(menuID: UInt32, updateSubCells: (NSNumber & SDLBool)?)

Parameters

menuID

- @(menuID)

updateSubCells

- updateSubCells

Return Value

A SDLOnUpdateSubMenu object

menuID

This menuID must match a menuID in the current menu structure {“num_min_value”: 0, “num_max_value”: 2000000000}

Objective-C

@property (nonatomic, strong) NSNumber<SDLUInt> *_Nonnull menuID;

Swift

var menuID: NSNumber & SDLUInt { get set }

updateSubCells

If not set, assume false. If true, the app should send AddCommands with parentIDs matching the menuID. These AddCommands will then be attached to the submenu and displayed if the submenu is selected.

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *updateSubCells;

Swift

var updateSubCells: (NSNumber & SDLBool)? { get set }
View on GitHub.com
Previous Section Next Section