Reorder AttachmentStream methods.

pull/1/head
Matthew Chen 7 years ago
parent 446ceb2b9c
commit 1831f0b1f8

@ -37,9 +37,6 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, readonly) NSDate *creationTimestamp; @property (nonatomic, readonly) NSDate *creationTimestamp;
#if TARGET_OS_IPHONE #if TARGET_OS_IPHONE
- (nullable UIImage *)originalImage;
- (nullable UIImage *)thumbnailImage;
- (nullable NSData *)thumbnailData;
- (nullable NSData *)validStillImageData; - (nullable NSData *)validStillImageData;
#endif #endif
@ -48,13 +45,16 @@ NS_ASSUME_NONNULL_BEGIN
- (BOOL)isVideo; - (BOOL)isVideo;
- (BOOL)isAudio; - (BOOL)isAudio;
+ (BOOL)hasThumbnailForMimeType:(NSString *)contentType; - (nullable UIImage *)originalImage;
- (nullable NSString *)originalFilePath; - (nullable NSString *)originalFilePath;
- (nullable NSURL *)originalMediaURL; - (nullable NSURL *)originalMediaURL;
- (nullable UIImage *)thumbnailImage;
- (nullable NSData *)thumbnailData;
- (nullable NSString *)thumbnailPath; - (nullable NSString *)thumbnailPath;
+ (BOOL)hasThumbnailForMimeType:(NSString *)contentType;
- (nullable NSData *)readDataFromFileWithError:(NSError **)error; - (nullable NSData *)readDataFromFileWithError:(NSError **)error;
- (BOOL)writeData:(NSData *)data error:(NSError **)error; - (BOOL)writeData:(NSData *)data error:(NSError **)error;
- (BOOL)writeDataSource:(DataSource *)dataSource; - (BOOL)writeDataSource:(DataSource *)dataSource;

Loading…
Cancel
Save