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
SDLMenuConfiguration

SDLMenuConfiguration Class Reference

Section Contents

Overview

Defines how the menu is configured

mainMenuLayout

Changes the default main menu layout. Defaults to SDLMenuLayoutList.

Objective-C

@property (nonatomic, strong, readonly) SDLMenuLayout _Nonnull mainMenuLayout;

Swift

var mainMenuLayout: SDLMenuLayout { get }

defaultSubmenuLayout

Changes the default submenu layout. To change this for an individual submenu, set the menuLayout property on the SDLMenuCell initializer for creating a cell with sub-cells. Defaults to SDLMenuLayoutList.

Objective-C

@property (nonatomic, strong, readonly) SDLMenuLayout _Nonnull defaultSubmenuLayout;

Swift

var defaultSubmenuLayout: SDLMenuLayout { get }

-initWithMainMenuLayout:defaultSubmenuLayout:

Initialize a new menu configuration with a main menu layout and a default submenu layout which can be overridden per-submenu if desired.

Objective-C

- (nonnull instancetype)
    initWithMainMenuLayout:(nonnull SDLMenuLayout)mainMenuLayout
      defaultSubmenuLayout:(nonnull SDLMenuLayout)defaultSubmenuLayout;

Swift

init(mainMenuLayout: SDLMenuLayout, defaultSubmenuLayout: SDLMenuLayout)

Parameters

mainMenuLayout

The new main menu layout

defaultSubmenuLayout

The new default submenu layout

Return Value

The menu configuration

View on GitHub.com
Previous Section Next Section