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


#import "SDLRPCMessage.h"

/**
 * Contains information about a SoftButton's capabilities.
 *
 * @since SDL 2.0
 */
@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) 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) 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) NSNumber<SDLBool> *upDownAvailable;

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

@end