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

18 lines
603 B
Objective-C

#import "TGImageView.h"
#import "TGAssetImageManager.h"
@class TGMediaPickerAsset;
@interface TGAssetImageView : TGImageView
@property (nonatomic, copy) void (^progressChanged)(CGFloat);
@property (nonatomic, copy) void (^availabilityStateChanged)(bool);
- (bool)isAvailableNow;
- (void)loadWithImage:(UIImage *)image;
- (void)loadWithAsset:(TGMediaPickerAsset *)asset imageType:(TGAssetImageType)imageType size:(CGSize)size;
- (void)loadWithAsset:(TGMediaPickerAsset *)asset imageType:(TGAssetImageType)imageType size:(CGSize)size completionBlock:(void (^)(UIImage *result))completionBlock;
@end