mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
21 lines
735 B
C
21 lines
735 B
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
|