diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-05-25 08:44:23 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-05-25 08:44:23 -0400 |
commit | fb8e9903a323acaf5fc78819bb3c203567542ab2 (patch) | |
tree | e40665103ac7db492e0a40e34cd92f3390defa55 /SmartDeviceLink/SDLMenuParams.h | |
parent | f7540a02262832e34c67b0953dd8a1804a046fea (diff) | |
download | sdl_ios-fb8e9903a323acaf5fc78819bb3c203567542ab2.tar.gz |
Shift files into root directory
Diffstat (limited to 'SmartDeviceLink/SDLMenuParams.h')
-rw-r--r-- | SmartDeviceLink/SDLMenuParams.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLMenuParams.h b/SmartDeviceLink/SDLMenuParams.h new file mode 100644 index 000000000..14f51e390 --- /dev/null +++ b/SmartDeviceLink/SDLMenuParams.h @@ -0,0 +1,56 @@ +// SDLMenuParams.h +// + + +#import "SDLRPCMessage.h" + +/** + * Used when adding a sub menu to an application menu or existing sub menu. + * + * @since SDL 1.0 + */ +@interface SDLMenuParams : SDLRPCStruct { +} + +/** + * Constructs a newly allocated SDLMenuParams object + */ +- (instancetype)init; + +/** + * Constructs a newly allocated SDLMenuParams object indicated by the dictionary parameter + * @param dict The dictionary to use + */ +- (instancetype)initWithDictionary:(NSMutableDictionary *)dict; + + +/** + * @abstract the unique ID of an existing submenu to which a command will be added + * @discussion If this element is not provided, the command will be added to the top level of the Command Menu. + * + * Optional, Integer, 0 - 2,000,000,000 + */ +@property (strong) NSNumber *parentID; + +/** + * @abstract The position within the items of the parent Command Menu + * @discussion 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. + * + * * If position is greater or equal than the number of items in the parent Command Menu, the sub menu will be appended to the end of that Command Menu. + * + * * If this element is omitted, the entry will be added at the end of the parent menu. + * + * Optional, Integer, 0 - 1000 + */ +@property (strong) NSNumber *position; + +/** + * @abstract the menu name which appears in menu, representing this command + * + * Required, max length 500 characters + */ +@property (strong) NSString *menuName; + +@end |