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

SDLMenuConfiguration Class Reference

Section Contents

Overview

Undocumented

mainMenuLayout

Changes the default main menu layout. Defaults to SDLMenuLayoutList.

Objective-C

@property (readonly, strong, nonatomic) 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 (readonly, strong, nonatomic)
    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 overriden 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