A soft button state including data such as text, name and artwork
The name of this soft button state
@property (nonatomic, copy, readonly) NSString *_Nonnull name;
var name: String { get }
The artwork to be used with this button or nil if it is text-only
@property (nonatomic, strong, readonly, nullable) SDLArtwork *artwork;
var artwork: SDLArtwork? { get }
The text to be used with this button or nil if it is image-only
@property (nonatomic, copy, readonly, nullable) NSString *text;
var text: String? { get }
Whether or not the button should be highlighted on the UI
@property (nonatomic, getter=isHighlighted) BOOL highlighted;
var isHighlighted: Bool { get set }
A special system action
@property (nonatomic, strong) SDLSystemAction _Nonnull systemAction;
var systemAction: SDLSystemAction { get set }
An SDLSoftButton describing this state
@property (nonatomic, strong, readonly) SDLSoftButton *_Nonnull softButton;
var softButton: SDLSoftButton { get }
Initializer unavailable
- (nonnull instancetype)init;
Create the soft button state. Either the text or artwork or both may be set.
- (nonnull instancetype)initWithStateName:(nonnull NSString *)stateName
text:(nullable NSString *)text
image:(nullable UIImage *)image;
init(stateName: String, text: String?, image: UIImage?)
The name of this state for the button
The text to be displayed on the button
The image to be displayed on the button. This is assumed to be a PNG, non-persistant. The name will be the same as the state name.
A new soft button state
Create the soft button state. Either the text or artwork or both may be set.
- (nonnull instancetype)initWithStateName:(nonnull NSString *)stateName
text:(nullable NSString *)text
artwork:(nullable SDLArtwork *)artwork;
init(stateName: String, text: String?, artwork: SDLArtwork?)
The name of this state for the button
The text to be displayed on the button
The artwork to be displayed on the button
A new soft button state