LCIMImageMessage
Objective-C
@interface LCIMImageMessage : LCIMTypedMessage <LCIMTypedMessageSubclassing>
Swift
class LCIMImageMessage : LCIMTypedMessage, LCIMTypedMessageSubclassing
Image Message. Can be created by the image’s file path.
-
Width of the image in pixels.
Declaration
Objective-C
@property (nonatomic, readonly) double width;
Swift
var width: Double { get }
-
Height of the image in pixels.
Declaration
Objective-C
@property (nonatomic, readonly) double height;
Swift
var height: Double { get }
-
File size in bytes.
Declaration
Objective-C
@property (nonatomic, readonly) double size;
Swift
var size: Double { get }
-
File URL string.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *url;
Swift
var url: String? { get }
-
Image format, png, jpg, etc. Simply get it from the file extension.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *format;
Swift
var format: String? { get }