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

21 lines
735 B
Objective-C

#import <Foundation/Foundation.h>
#import "TGModernMediaListItem.h"
@class TGModernGalleryController;
@interface TGModernMediaListModel : NSObject
@property (nonatomic, copy) void (^itemsUpdated)();
@property (nonatomic, copy) void (^itemUpdated)(id<TGModernMediaListItem>);
@property (nonatomic, readonly) NSUInteger totalCount;
@property (nonatomic, strong, readonly) NSArray *items;
- (void)_replaceItems:(NSArray *)items totalCount:(NSUInteger)totalCount;
- (void)_transitionCompleted;
- (TGModernGalleryController *)createGalleryControllerForItem:(id<TGModernMediaListItem>)item hideItem:(void (^)(id<TGModernMediaListItem>))hideItem referenceViewForItem:(UIView *(^)(id<TGModernMediaListItem>))referenceViewForItem;
@end