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
JavaEE Documentation
MenuConfiguration

Class MenuConfiguration

Hierarchy

java.lang.Object

Package
com.smartdevicelink.managers.screen.menu

Constructors

Create a MenuConfiguration Object

public MenuConfiguration(MenuLayout mainMenuLayout,MenuLayout submenuLayout)

Constructor Parameters

mainMenuLayout
- the layout of the main menu. If `null`, it will default to whatever the head unit uses
submenuLayout
- the layout of the main menu. If `null`, it will default to whatever the head unit uses

Methods

getMenuLayout()

Changes the default main menu layout.

public com.smartdevicelink.proxy.rpc.enums.MenuLayout getMenuLayout()

getSubMenuLayout()

Changes the default submenu layout. To change this for an individual submenu, set the `menuLayout` property on the `MenuCell` constructor for creating a cell with sub-cells.

public com.smartdevicelink.proxy.rpc.enums.MenuLayout getSubMenuLayout()

toString()

public java.lang.String toString()

hashCode()

Note: You should compare using the {@link #equals(Object)} method.
Hash the parameters of the object and return the result for comparison

public int hashCode()

equals( Object o )

Uses our custom hashCode for MenuConfiguration objects

public boolean equals(Object o)

Method Parameters

o
- The object to compare

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section