// SDLOnButtonPress.h // #import "SDLRPCNotification.h" #import "SDLButtonName.h" #import "SDLButtonPressMode.h" /** * Notifies application of button press events for buttons to which the * application is subscribed. SDL supports two button press events defined as * follows: * * * HMI Status Requirements: * * * @see SDLSubscribeButton * @see SDLUnsubscribeButton * * @since SDL 1.0 */ NS_ASSUME_NONNULL_BEGIN @interface SDLOnButtonPress : SDLRPCNotification /** * @abstract the button's name * * @see SDLButtonName * * Required */ @property (strong, nonatomic) SDLButtonName buttonName; /** * @abstract Indicates whether this is a LONG or SHORT button press event * * @see SDLButtonPressMode * * Required */ @property (strong, nonatomic) SDLButtonPressMode buttonPressMode; /** * @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 *customButtonID; @end NS_ASSUME_NONNULL_END