summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLSoftButton.h
blob: a5cc9d7a44af36accc7e42c633e561dd1796dada (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
//  SDLSoftButton.h
//

#import "SDLRPCMessage.h"

#import "SDLNotificationConstants.h"
#import "SDLRequestHandler.h"
#import "SDLSoftButtonType.h"
#import "SDLSystemAction.h"

@class SDLImage;

NS_ASSUME_NONNULL_BEGIN

@interface SDLSoftButton : SDLRPCStruct <SDLRequestHandler>

- (instancetype)initWithHandler:(nullable SDLRPCNotificationHandler)handler;

- (instancetype)initWithType:(SDLSoftButtonType)type text:(nullable NSString *)text image:(nullable SDLImage *)image highlighted:(BOOL)highlighted buttonId:(UInt16)buttonId systemAction:(nullable SDLSystemAction)systemAction handler:(nullable SDLRPCNotificationHandler)handler;

@property (copy, nonatomic) SDLRPCNotificationHandler handler;

@property (strong, nonatomic) SDLSoftButtonType type;
@property (strong, nonatomic, nullable) NSString *text;
@property (strong, nonatomic, nullable) SDLImage *image;
@property (strong, nonatomic, nullable) NSNumber<SDLBool> *isHighlighted;
@property (strong, nonatomic) NSNumber<SDLInt> *softButtonID;
@property (strong, nonatomic, nullable) SDLSystemAction systemAction;

@end

NS_ASSUME_NONNULL_END