java.lang.Object
com.smartdevicelink.proxy.RPCStruct
Parameter List
Name | Type | Description | Req. | 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.
|
N | 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.
|
N | SmartDeviceLink 1.0 |
menuName | String | Text which appears in menu, representing this command.
|
Y | SmartDeviceLink 1.0 |
secondaryText | String | Optional secondary text to display {"string_min_length": 1, "string_max_length": 500} |
N | SmartDeviceLink 7.1.0 |
tertiaryText | String | Optional tertiary text to display {"string_min_length": 1, "string_max_length": 500} |
N | SmartDeviceLink 7.1.0 |
public static final java.lang.String KEY_PARENT_ID
public static final java.lang.String KEY_POSITION
public static final java.lang.String KEY_MENU_NAME
public static final java.lang.String KEY_SECONDARY_TEXT
public static final java.lang.String KEY_TERTIARY_TEXT
From Class | Fields |
---|---|
com.smartdevicelink.proxy.RPCStruct | KEY_BULK_DATA, KEY_PROTECTED, store |
Constructs a newly allocated MenuParams object
public MenuParams()
Constructs a newly allocated MenuParams object indicated by the Hashtable parameter
public MenuParams(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a newly allocated MenuParams object
public MenuParams(String menuName)
Get 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.
public java.lang.Integer getParentID()
Set 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.
public com.smartdevicelink.proxy.rpc.MenuParams setParentID(Integer parentID)
Get the 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.
public java.lang.Integer getPosition()
Set the 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.
public com.smartdevicelink.proxy.rpc.MenuParams setPosition(Integer position)
Get the text which appears in menu, representing this command.
public java.lang.String getMenuName()
Set text which appears in menu, representing this command.
public com.smartdevicelink.proxy.rpc.MenuParams setMenuName(String menuName)
Sets the secondaryText.
public com.smartdevicelink.proxy.rpc.MenuParams setSecondaryText(String secondaryText)
Gets the secondaryText.
public java.lang.String getSecondaryText()
Sets the tertiaryText.
public com.smartdevicelink.proxy.rpc.MenuParams setTertiaryText(String tertiaryText)
Gets the tertiaryText.
public java.lang.String getTertiaryText()
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |