Specifies which image shall be used e.g. in SDLAlerts or on SDLSoftbuttons provided the display supports it.
@since SDL 2.0
Convenience init for displaying a dynamic image. The image must be uploaded to SDL Core before being displayed.
- (nonnull instancetype)initWithName:(nonnull NSString *)name
ofType:(nonnull SDLImageType)imageType
isTemplate:(BOOL)isTemplate;
init(name: String, ofType imageType: SDLImageType, isTemplate: Bool)
The unique name used to upload the image to SDL Core
Describes whether the image is static or dynamic
Whether or not the image is a template that can be (re)colored by the SDL HMI. Static images are templates by default.
A SDLImage object
Convenience init for displaying a dynamic image. The image must be uploaded to SDL Core before being displayed.
- (nonnull instancetype)initWithName:(nonnull NSString *)name
isTemplate:(BOOL)isTemplate;
init(name: String, isTemplate: Bool)
The unique name used to upload the image to SDL Core
Whether or not the image is a template that can be (re)colored by the SDL HMI
A SDLImage object
Convenience init for displaying a static image. Static images are already on-board SDL Core and can be used by providing the image’s value.
- (nonnull instancetype)initWithStaticImageValue:(UInt16)staticImageValue;
init(staticImageValue: UInt16)
The image value assigned to the static image
A SDLImage object
Convenience init for displaying a static image. Static images are already on-board SDL Core and can be used by providing the image’s value.
- (nonnull instancetype)initWithStaticIconName:
(nonnull SDLStaticIconName)staticIconName;
init(staticIconName: SDLStaticIconName)
A SDLStaticIconName value
A SDLImage object
The static hex icon value or the binary image file name identifier (sent by SDLPutFile)
Required, max length = 65535
@property (nonatomic, strong) NSString *_Nonnull value;
var value: String { get set }
Describes whether the image is static or dynamic
Required
@property (nonatomic, strong) SDLImageType _Nonnull imageType;
var imageType: SDLImageType { get set }
Indicates that this image can be (re)colored by the HMI to best fit the current color scheme.
@property (nonatomic) NSNumber<SDLBool> *_Nonnull isTemplate;
unowned(unsafe) var isTemplate: NSNumber & SDLBool { get set }