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
SDLDynamicUpdateCapabilities

SDLDynamicUpdateCapabilities Class Reference

Section Contents

Overview

@since SDL 7.0

-initWithSupportedDynamicImageFieldNames:supportsDynamicSubMenus:

Objective-C

- (nonnull instancetype)
    initWithSupportedDynamicImageFieldNames:
        (nullable NSArray<SDLImageFieldName> *)supportedDynamicImageFieldNames
                    supportsDynamicSubMenus:
                        (nullable NSNumber<SDLBool> *)supportsDynamicSubMenus;

Swift

init(supportedDynamicImageFieldNames: [SDLImageFieldName]?, supportsDynamicSubMenus: (NSNumber & SDLBool)?)

Parameters

supportedDynamicImageFieldNames

- supportedDynamicImageFieldNames

supportsDynamicSubMenus

- supportsDynamicSubMenus

Return Value

A SDLDynamicUpdateCapabilities object

supportedDynamicImageFieldNames

An array of ImageFieldName values for which the system supports sending OnFileUpdate notifications. If you send an Image struct for that image field with a name without having uploaded the image data using PutFile that matches that name, the system will request that you upload the data with PutFile at a later point when the HMI needs it. The HMI will then display the image in the appropriate field. If not sent, assume false. {“array_min_size”: 1, “array_max_size”: null}

Objective-C

@property (nonatomic, strong, nullable) NSArray<SDLImageFieldName> *supportedDynamicImageFieldNames;

Swift

var supportedDynamicImageFieldNames: [SDLImageFieldName]? { get set }

supportsDynamicSubMenus

If true, the head unit supports dynamic sub-menus by sending OnUpdateSubMenu notifications. If true, you should not send AddCommands that attach to a parentID for an AddSubMenu until OnUpdateSubMenu is received with the menuID. At that point, you should send all AddCommands with a parentID that match the menuID. If not set, assume false.

Objective-C

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

Swift

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