A menu cell item for the main menu or sub-menu.
The cell’s text to be displayed
@property (nonatomic, copy, readonly) NSString *_Nonnull title;
var title: String { get }
The cell’s icon to be displayed
@property (nonatomic, strong, readonly, nullable) SDLArtwork *icon;
var icon: SDLArtwork? { get }
The strings the user can say to activate this voice command
@property (nonatomic, copy, readonly, nullable) NSArray<NSString *> *voiceCommands;
var voiceCommands: [String]? { get }
The handler that will be called when the command is activated
@property (nonatomic, copy, readonly, nullable) SDLMenuCellSelectionHandler handler;
var handler: SDLMenuCellSelectionHandler? { get }
If this is non-nil, this cell will be a sub-menu button, displaying the subcells in a menu when pressed.
@property (nonatomic, copy, readonly, nullable) NSArray<SDLMenuCell *> *subCells;
var subCells: [SDLMenuCell]? { get }
The layout in which the subCells
will be displayed.
@property (nonatomic, strong, readonly, nullable) SDLMenuLayout submenuLayout;
var submenuLayout: SDLMenuLayout? { get }
Primary text of the cell to be displayed on the module. Used to distinguish cells with the same title
but other fields are different. This is autogenerated by the screen manager. This will not be used when connected to modules supporting RPC 7.1+ because duplicate titles are supported.
@property (nonatomic, strong, readonly) NSString *_Nonnull uniqueTitle;
var uniqueTitle: String { get }
The cell’s secondary text to be displayed
@property (nonatomic, copy, readonly, nullable) NSString *secondaryText;
var secondaryText: String? { get }
The cell’s tertiary text to be displayed
@property (nonatomic, copy, readonly, nullable) NSString *tertiaryText;
var tertiaryText: String? { get }
The cell’s secondary icon to be displayed
@property (nonatomic, strong, readonly, nullable) SDLArtwork *secondaryArtwork;
var secondaryArtwork: SDLArtwork? { get }
Create a menu cell that has no subcells.
- (nonnull instancetype)
initWithTitle:(nonnull NSString *)title
icon:(nullable SDLArtwork *)icon
voiceCommands:(nullable NSArray<NSString *> *)voiceCommands
handler:(nonnull SDLMenuCellSelectionHandler)handler;
init(title: String, icon: SDLArtwork?, voiceCommands: [String]?, handler: @escaping SDLMenuCellSelectionHandler)
The cell’s primary text
The cell’s image
Voice commands that will activate the menu cell
The code that will be run when the menu cell is selected
The menu cell
Create a menu cell that has subcells and when selected will go into a deeper part of the menu
- (nonnull instancetype)initWithTitle:(nonnull NSString *)title
icon:(nullable SDLArtwork *)icon
submenuLayout:(nullable SDLMenuLayout)layout
subCells:
(nonnull NSArray<SDLMenuCell *> *)subCells;
init(title: String, icon: SDLArtwork?, submenuLayout layout: SDLMenuLayout?, subCells: [SDLMenuCell])
The cell’s primary text
The cell’s image
The layout that the subCells will be laid out in if that submenu is entered
The subcells that will appear when the cell is selected
The menu cell
Create a menu cell that has no subcells.
- (nonnull instancetype)
initWithTitle:(nonnull NSString *)title
secondaryText:(nullable NSString *)secondaryText
tertiaryText:(nullable NSString *)tertiaryText
icon:(nullable SDLArtwork *)icon
secondaryArtwork:(nullable SDLArtwork *)secondaryArtwork
voiceCommands:(nullable NSArray<NSString *> *)voiceCommands
handler:(nonnull SDLMenuCellSelectionHandler)handler;
init(title: String, secondaryText: String?, tertiaryText: String?, icon: SDLArtwork?, secondaryArtwork: SDLArtwork?, voiceCommands: [String]?, handler: @escaping SDLMenuCellSelectionHandler)
The cell’s primary text
- secondaryText
- tertiaryText
The cell’s image
- secondaryArtwork
Voice commands that will activate the menu cell
The code that will be run when the menu cell is selected
The menu cell
Create a menu cell that has subcells and when selected will go into a deeper part of the menu
- (nonnull instancetype)initWithTitle:(nonnull NSString *)title
secondaryText:(nullable NSString *)secondaryText
tertiaryText:(nullable NSString *)tertiaryText
icon:(nullable SDLArtwork *)icon
secondaryArtwork:(nullable SDLArtwork *)secondaryArtwork
submenuLayout:(nullable SDLMenuLayout)layout
subCells:
(nonnull NSArray<SDLMenuCell *> *)subCells;
init(title: String, secondaryText: String?, tertiaryText: String?, icon: SDLArtwork?, secondaryArtwork: SDLArtwork?, submenuLayout layout: SDLMenuLayout?, subCells: [SDLMenuCell])
The cell’s primary text
- secondaryText
- tertiaryText
The cell’s image
- secondaryArtwork
The layout that the subCells will be laid out in if that submenu is entered
The subcells that will appear when the cell is selected
The menu cell