Defines how the menu is configured
Changes the default main menu layout. Defaults to SDLMenuLayoutList
.
@property (nonatomic, strong, readonly) SDLMenuLayout _Nonnull mainMenuLayout;
var mainMenuLayout: SDLMenuLayout { get }
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
.
@property (nonatomic, strong, readonly) SDLMenuLayout _Nonnull defaultSubmenuLayout;
var defaultSubmenuLayout: SDLMenuLayout { get }
Initialize a new menu configuration with a main menu layout and a default submenu layout which can be overridden per-submenu if desired.
- (nonnull instancetype)
initWithMainMenuLayout:(nonnull SDLMenuLayout)mainMenuLayout
defaultSubmenuLayout:(nonnull SDLMenuLayout)defaultSubmenuLayout;
init(mainMenuLayout: SDLMenuLayout, defaultSubmenuLayout: SDLMenuLayout)
The new main menu layout
The new default submenu layout
The menu configuration