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
63
64
65
66
|
// SDLOnButtonEvent.h
//
#import "SDLRPCNotification.h"
#import "SDLButtonName.h"
#import "SDLButtonEventMode.h"
/**
Notifies application that user has depressed or released a button to which
the application has subscribed.
Further information about button events and button-presses can be found at SDLSubscribeButton.
HMI Status Requirements:
HMILevel:
* The application will receive <i>SDLOnButtonEvent</i> notifications for all subscribed buttons when HMILevel is FULL.
* The application will receive <i>SDLOnButtonEvent</i> notifications for subscribed media buttons when HMILevel is LIMITED.
* Media buttons include SEEKLEFT, SEEKRIGHT, TUNEUP, TUNEDOWN, and PRESET_0-PRESET_9.
* The application will not receive <i>SDLOnButtonEvent</i> notification when HMILevel is BACKGROUND.
AudioStreamingState:
* Any
SystemContext:
* MAIN, VR. In MENU, only PRESET buttons.
* In VR, pressing any subscribable button will cancel VR.
@see SDLSubscribeButton
@since SDL 1.0
*/
NS_ASSUME_NONNULL_BEGIN
@interface SDLOnButtonEvent : SDLRPCNotification
/**
* The name of the button
*/
@property (strong, nonatomic) SDLButtonName buttonName;
/**
* Indicates whether this is an UP or DOWN event
*/
@property (strong, nonatomic) SDLButtonEventMode buttonEventMode;
/**
* If ButtonName is "CUSTOM_BUTTON", this references the integer ID passed by a custom button. (e.g. softButton ID)
*
* @since SDL 2.0
*
* Optional, Integer, 0 - 65536
*/
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *customButtonID;
@end
NS_ASSUME_NONNULL_END
|