NumberImageMenuParamsImageArray.<String>AddCommandAddCommandAddCommandAddCommandAddCommandNumberGet the CmdID
Kind: Instance method of AddCommand
Returns: Number - the KEY_CMD_ID value
ImageGet the CmdIcon
Kind: Instance method of AddCommand
Returns: Image - the KEY_CMD_ICON value
MenuParamsGet the MenuParams
Kind: Instance method of AddCommand
Returns: MenuParams - the KEY_MENU_PARAMS value
ImageGet 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
AddCommandSet 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} |
AddCommandSet 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. |
AddCommandSet 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. |
AddCommandSet 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. |
AddCommandSet 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} |