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


#import "SDLRPCMessage.h"

/**
 * Contains information about a SoftButton's capabilities.
 *
 * @since SDL 2.0
 */

NS_ASSUME_NONNULL_BEGIN

@interface SDLSoftButtonCapabilities : SDLRPCStruct

/**
 * @abstract The button supports a short press.
 *
 * @discussion Whenever the button is pressed short, onButtonPressed(SHORT) will be invoked.
 *
 * Required, Boolean
 */
@property (strong, nonatomic) NSNumber<SDLBool> *shortPressAvailable;

/**
 * @abstract The button supports a LONG press.
 *
 * @discussion Whenever the button is pressed long, onButtonPressed(LONG) will be invoked.
 *
 * Required, Boolean
 */
@property (strong, nonatomic) NSNumber<SDLBool> *longPressAvailable;

/**
 * @abstract The button supports "button down" and "button up".
 *
 * @discussion Whenever the button is pressed, onButtonEvent(DOWN) will be invoked. Whenever the button is released, onButtonEvent(UP) will be invoked.
 *
 * Required, Boolean
 */
@property (strong, nonatomic) NSNumber<SDLBool> *upDownAvailable;

/**
 * @abstract The button supports referencing a static or dynamic image.
 *
 * Required, Boolean
 */
@property (strong, nonatomic) NSNumber<SDLBool> *imageSupported;

@end

NS_ASSUME_NONNULL_END