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

19 lines
752 B
Objective-C

#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