// 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: *
*
* @see SDLSubscribeButton
*
* @since SDL 1.0
*/
NS_ASSUME_NONNULL_BEGIN
@interface SDLOnButtonEvent : SDLRPCNotification
/**
* @abstract The name of the button
*/
@property (strong, nonatomic) SDLButtonName buttonName;
/**
* @abstract Indicates whether this is an UP or DOWN event
*/
@property (strong, nonatomic) SDLButtonEventMode buttonEventMode;
/**
* @abstract 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