1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGEditablePhotoItem.h
2015-10-01 19:19:52 +03:00

27 lines
1.1 KiB
Objective-C

#import <Foundation/Foundation.h>
@class PGPhotoEditorValues;
@protocol TGMediaEditAdjustments;
@protocol TGEditablePhotoItem <NSObject>
@property (nonatomic, readonly) CGSize originalSize;
@property (nonatomic, copy) id<TGMediaEditAdjustments> (^fetchEditorValues)(id<TGEditablePhotoItem> item);
@property (nonatomic, copy) NSString * (^fetchCaption)(id<TGEditablePhotoItem> item);
@property (nonatomic, copy) UIImage *(^fetchThumbnailImage)(id<TGEditablePhotoItem> item);
@property (nonatomic, copy) UIImage *(^fetchScreenImage)(id<TGEditablePhotoItem> item);
@property (nonatomic, copy) void(^fetchOriginalImage)(id<TGEditablePhotoItem> item, void(^)(UIImage *image));
@property (nonatomic, copy) void(^fetchOriginalThumbnailImage)(id<TGEditablePhotoItem> item, void(^)(UIImage *image));
- (void)fetchThumbnailImageWithCompletion:(void (^)(UIImage *image))completion;
- (void)fetchOriginalScreenSizeImageWithCompletion:(void (^)(UIImage *image))completion;
- (void)fetchOriginalFullSizeImageWithCompletion:(void (^)(UIImage *image))completion;
- (NSString *)uniqueId;
@optional
- (void)fetchMetadataWithCompletion:(void (^)(NSDictionary *metadata))completion;
@end