1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 09:29:55 +01:00
Telegram/Telegraph/TGAssetImageView.h

18 lines
603 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#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