Number
Image
MenuParams
Image
Array.<String>
AddCommand
AddCommand
AddCommand
AddCommand
AddCommand
Number
Get the CmdID
Kind: Instance method of AddCommand
Returns: Number
- the KEY_CMD_ID value
Image
Get the CmdIcon
Kind: Instance method of AddCommand
Returns: Image
- the KEY_CMD_ICON value
MenuParams
Get the MenuParams
Kind: Instance method of AddCommand
Returns: MenuParams
- the KEY_MENU_PARAMS value
Image
Get the SecondaryImage
Kind: Instance method of AddCommand
Returns: Image
- the KEY_SECONDARY_IMAGE value
Array.<String>
Get the VrCommands
Kind: Instance method of AddCommand
Returns: Array.<String>
- the KEY_VR_COMMANDS value
AddCommand
Set the CmdID
Kind: Instance method of AddCommand
Returns: AddCommand
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
id | Number |
unique ID of the command to add. - The desired CmdID. {'num_min_value': 0, 'num_max_value': 2000000000} |
AddCommand
Set the CmdIcon
Kind: Instance method of AddCommand
Returns: AddCommand
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
icon | Image |
Image struct determining whether static or dynamic icon. If omitted on supported displays, no (or the default if applicable) icon shall be displayed. - The desired CmdIcon. |
AddCommand
Set the MenuParams
Kind: Instance method of AddCommand
Returns: AddCommand
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
params | MenuParams |
Optional sub value containing menu parameters - The desired MenuParams. |
AddCommand
Set the SecondaryImage
Kind: Instance method of AddCommand
Returns: AddCommand
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
image | Image |
Optional secondary image struct for menu cell - The desired SecondaryImage. |
AddCommand
Set the VrCommands
Kind: Instance method of AddCommand
Returns: AddCommand
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
commands | Array.<String> |
An array of strings to be used as VR synonyms for this command. If this array is provided, it may not be empty. - The desired VrCommands. {'array_min_size': 1, 'array_max_size': 100, 'string_min_length': 1, 'string_max_length': 99} |