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

19 lines
752 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import <UIKit/UIKit.h>
@class TGMediaPickerAsset;
@class TGMediaPickerItem;
@protocol TGModernMediaListItem;
@interface TGAttachmentSheetRecentAssetCell : UICollectionViewCell
@property (nonatomic, strong, readonly) TGMediaPickerItem *item;
- (void)setItem:(TGMediaPickerItem *)item isItemSelected:(bool (^)(id<TGModernMediaListItem>))isItemSelected isItemHidden:(bool (^)(id<TGModernMediaListItem>))isItemHidden changeItemSelection:(void (^)(id<TGModernMediaListItem>))changeItemSelection openItem:(void (^)(TGMediaPickerItem *))openItem;
- (UIView *)referenceViewForAsset:(TGMediaPickerAsset *)asset;
- (UIImage *)imageForAsset:(TGMediaPickerAsset *)asset;
- (void)updateSelection;
- (void)updateHidden:(bool)animated;
- (void)updateItem;
@end