ImageModel
@interface ImageModel : NSObject <NSCoding>
@property (nonatomic, readonly, nullable) NSString *imageUrl;
@property (nonatomic, nullable) NSData *imageData;
@property (nonatomic, readonly) BOOL animated;
@property (nonatomic, readonly) float imageWidth;
@property (nonatomic, readonly) float imageHeight;
@property (nonatomic, readonly, nullable) NSString *thumbnailUrl;
+ (nonnull ImageModel *)imageModelWithImageUrl:(nonnull NSString *)imageUrl
animated:(BOOL)animated
width:(float)imageWidth
height:(float)imageHeight
thumbnailUrl:(nullable NSString *)thumbnailUrl;
+ (nonnull ImageModel *)imageModelWithImageData:(nonnull NSData *)imageData
animated:(BOOL)animated
width:(float)imageWidth
height:(float)imageHeight
thumbnailUrl:(nullable NSString *)thumbnailUrl;
+ (nonnull ImageModel *)imageModelFromDictionary:(nonnull NSDictionary *)dictionary;
- (nonnull NSDictionary *)dictionaryRepresentation;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *imageUrl
Swift
var imageUrl: String? { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, nullable) NSData *imageData
Swift
var imageData: Data? { get set }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) BOOL animated
Swift
var animated: Bool { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) float imageWidth
Swift
var imageWidth: Float { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) float imageHeight
Swift
var imageHeight: Float { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *thumbnailUrl
Swift
var thumbnailUrl: String? { get }
-
Undocumented
Declaration
Objective-C
+ (nonnull ImageModel *)imageModelWithImageUrl:(nonnull NSString *)imageUrl animated:(BOOL)animated width:(float)imageWidth height:(float)imageHeight thumbnailUrl:(nullable NSString *)thumbnailUrl;
Swift
/*not inherited*/ init(imageUrl: String, animated: Bool, width imageWidth: Float, height imageHeight: Float, thumbnailUrl: String?)
-
Undocumented
Declaration
Objective-C
+ (nonnull ImageModel *)imageModelWithImageData:(nonnull NSData *)imageData animated:(BOOL)animated width:(float)imageWidth height:(float)imageHeight thumbnailUrl:(nullable NSString *)thumbnailUrl;
Swift
/*not inherited*/ init(imageData: Data, animated: Bool, width imageWidth: Float, height imageHeight: Float, thumbnailUrl: String?)
-
Undocumented
Declaration
Objective-C
+ (nonnull ImageModel *)imageModelFromDictionary:(nonnull NSDictionary *)dictionary;
Swift
/*not inherited*/ init(from dictionary: [AnyHashable : Any])
-
Undocumented
Declaration
Objective-C
- (nonnull NSDictionary *)dictionaryRepresentation;
Swift
func dictionaryRepresentation() -> [AnyHashable : Any]