blob: 7a4471f6028e67e4161fa0aa22da3da406f2472b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
// SDLAddSubMenu.h
#import "SDLRPCRequest.h"
/**
* Add a SDLSubMenu to the Command Menu
* <p>
* A SDLSubMenu can only be added to the Top Level Menu (i.e.a SDLSubMenu cannot be
* added to a SDLSubMenu), and may only contain commands as children
* <p>
* <p>
* <b>HMILevel needs to be FULL, LIMITED or BACKGROUD</b>
* </p>
*
* Since <b>SmartDeviceLink 1.0</b><br>
* see SDLDeleteSubMenu SDLAddCommand SDLDeleteCommand
*/
NS_ASSUME_NONNULL_BEGIN
@interface SDLAddSubMenu : SDLRPCRequest
- (instancetype)initWithId:(UInt32)menuId menuName:(NSString *)menuName;
- (instancetype)initWithId:(UInt32)menuId menuName:(NSString *)menuName position:(UInt8)position;
/**
* a Menu ID that identifies a sub menu
* @discussion This value is used in
* <i>SDLAddCommand</i> to which SDLSubMenu is the parent of the command being added
* <p>
*/
@property (strong, nonatomic) NSNumber<SDLInt> *menuID;
/**
* a position of menu
* @discussion An NSNumber pointer representing the position within the items
* of the top level 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
* <p>
* <b>Notes: </b><br/>
* <ul>
* <li>
* Min Value: 0; Max Value: 1000</li>
* <li>If position is greater or equal than the number of items
* on top level, the sub menu will be appended by the end</li>
* <li>If this parameter is omitted, the entry will be added at
* the end of the list</li>
* </ul>
*/
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *position;
/**
* a menuName which is displayed representing this submenu item
* @discussion NSString which will be displayed representing this submenu item
*/
@property (strong, nonatomic) NSString *menuName;
@end
NS_ASSUME_NONNULL_END
|