public class MenuParams extends RPCStruct
Parameter List
| Name | Type | Description | SmartDeviceLink Ver. Available | ||
|---|---|---|---|---|---|
| parentID | Integer | The unique ID of an existing submenu to which a command will be added.
If this element is not provided, the command will be added to the top level of the Command Menu.
|
SmartDeviceLink 1.0 | ||
| position | Integer | Position within the items of the parent Command Menu. 0 will insert at the front, 1 will insert after the first existing element, etc.
Position of any submenu will always be located before the return and exit options.
|
SmartDeviceLink 1.0 | ||
| menuName | String | Text which appears in menu, representing this command.
|
SmartDeviceLink 1.0 | ||
| secondaryText | String | Optional secondary text to display | N | {"string_min_length": 1, "string_max_length": 500} |
|
| tertiaryText | String | Optional tertiary text to display | N | {"string_min_length": 1, "string_max_length": 500} | , SmartDeviceLink 7.1.0 |
AddCommand,
AddSubMenu| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_MENU_NAME |
static String |
KEY_PARENT_ID |
static String |
KEY_POSITION |
static String |
KEY_SECONDARY_TEXT |
static String |
KEY_TERTIARY_TEXT |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
MenuParams()
Constructs a newly allocated MenuParams object
|
MenuParams(Hashtable<String,Object> hash)
Constructs a newly allocated MenuParams object indicated by the Hashtable parameter
|
MenuParams(String menuName)
Constructs a newly allocated MenuParams object
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMenuName()
Get the text which appears in menu, representing this command.
|
Integer |
getParentID()
Get the unique ID of an existing submenu to which a command will be added.
|
Integer |
getPosition()
Get the position within the items of the parent Command Menu.
|
String |
getSecondaryText()
Gets the secondaryText.
|
String |
getTertiaryText()
Gets the tertiaryText.
|
MenuParams |
setMenuName(String menuName)
Set text which appears in menu, representing this command.
|
MenuParams |
setParentID(Integer parentID)
Set the unique ID of an existing submenu to which a command will be added.
|
MenuParams |
setPosition(Integer position)
Set the position within the items of the parent Command Menu.
|
MenuParams |
setSecondaryText(String secondaryText)
Sets the secondaryText.
|
MenuParams |
setTertiaryText(String tertiaryText)
Sets the tertiaryText.
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_PARENT_ID
public static final String KEY_POSITION
public static final String KEY_MENU_NAME
public static final String KEY_SECONDARY_TEXT
public static final String KEY_TERTIARY_TEXT
public MenuParams()
public MenuParams(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic MenuParams(@NonNull
String menuName)
menuName - the menu namepublic Integer getParentID()
public MenuParams setParentID(Integer parentID)
parentID - Min: 0; Max: 2000000000public Integer getPosition()
public MenuParams setPosition(Integer position)
position - Mix: 0 Max: 1000public String getMenuName()
public MenuParams setMenuName(@NonNull String menuName)
menuName - the menu namepublic MenuParams setSecondaryText(String secondaryText)
secondaryText - Optional secondary text to display
{"string_min_length": 1, "string_max_length": 500}public String getSecondaryText()
public MenuParams setTertiaryText(String tertiaryText)
tertiaryText - Optional tertiary text to display
{"string_min_length": 1, "string_max_length": 500}public String getTertiaryText()