Describes an on-screen button which may be presented in various contexts, e.g. templates or alerts
Convenience init
- (nonnull instancetype)initWithHandler:
(nullable SDLRPCButtonNotificationHandler)handler;
init(handler: SDLRPCButtonNotificationHandler? = nil)
A handler that may optionally be run when the SDLSoftButton has a corresponding notification occur
Convenience init
- (nonnull instancetype)initWithType:(nonnull SDLSoftButtonType)type
text:(nullable NSString *)text
image:(nullable SDLImage *)image
highlighted:(BOOL)highlighted
buttonId:(UInt16)buttonId
systemAction:(nullable SDLSystemAction)systemAction
handler:(nullable SDLRPCButtonNotificationHandler)
handler;
init(type: SDLSoftButtonType, text: String?, image: SDLImage?, highlighted: Bool, buttonId: UInt16, systemAction: SDLSystemAction?, handler: SDLRPCButtonNotificationHandler? = nil)
Describes whether this soft button displays only text, only an image, or both
Optional text to display (if defined as TEXT or BOTH type)
Optional image struct for SoftButton (if defined as IMAGE or BOTH type)
Displays in an alternate mode, e.g. with a colored background or foreground. Depends on the IVI system
Value which is returned via OnButtonPress / OnButtonEvent
Parameter indicating whether selecting a SoftButton shall call a specific system action
A handler that may optionally be run when the SDLSoftButton has a corresponding notification occur.
A handler that may optionally be run when the SDLSoftButton has a corresponding notification occur.
@property (nonatomic, copy) SDLRPCButtonNotificationHandler _Nonnull handler;
var handler: SDLRPCButtonNotificationHandler { get set }
Describes whether this soft button displays only text, only an image, or both
Required
@property (nonatomic, strong) SDLSoftButtonType _Nonnull type;
var type: SDLSoftButtonType { get set }
Optional text to display (if defined as TEXT or BOTH type)
Optional
@property (nonatomic, strong, nullable) NSString *text;
var text: String? { get set }
Optional image struct for SoftButton (if defined as IMAGE or BOTH type)
Optional
@property (nonatomic, strong, nullable) SDLImage *image;
var image: SDLImage? { get set }
Displays in an alternate mode, e.g. with a colored background or foreground. Depends on the IVI system.
Optional
@property (nonatomic, strong, nullable) NSNumber<SDLBool> *isHighlighted;
var isHighlighted: (NSNumber & SDLBool)? { get set }
Value which is returned via OnButtonPress / OnButtonEvent
Required
@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull softButtonID;
var softButtonID: NSNumber & SDLInt { get set }
Parameter indicating whether selecting a SoftButton shall call a specific system action. This is intended to allow Notifications to bring the callee into full / focus; or in the case of persistent overlays, the overlay can persist when a SoftButton is pressed.
Optional
@property (nonatomic, strong, nullable) SDLSystemAction systemAction;
var systemAction: SDLSystemAction? { get set }