summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLShowAppMenu.h
blob: a7ca2cf0f1f14fd76645dba3801f5afa972ee9c5 (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
//
//  SDLOpenMenu.h
//  SmartDeviceLink
//
//  Created by Justin Gluck on 7/12/19.
//  Copyright © 2019 smartdevicelink. All rights reserved.
//

#import "SDLRPCRequest.h"

NS_ASSUME_NONNULL_BEGIN

/**
 Used by an app to show the app's menu, typically this is used by a navigation app if the menu button is hidden.
 
 Added in SmartDeviceLink 6.0
 */
@interface SDLShowAppMenu : SDLRPCRequest

/**
 Creates a ShowAppMenu RPC to open the app menu directly to a AddSubMenu RPC's submenu.

 @param menuID The ID of the AddSubMenu to open
 @return SDLShowAppMenu RPCRequest
 */
- (instancetype)initWithMenuID:(UInt32)menuID;

/**
 A Menu ID that identifies the AddSubMenu to open if it correlates with the AddSubMenu menuID parameter. If not set the top level menu will be opened.
 */
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *menuID;

@end

NS_ASSUME_NONNULL_END