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

37 lines
1.4 KiB
Objective-C

#import <Foundation/Foundation.h>
#import "TGModernGalleryInterfaceView.h"
#import "TGModernGalleryDefaultHeaderView.h"
#import "TGModernGalleryDefaultFooterView.h"
#import "TGModernGalleryDefaultFooterAccessoryView.h"
@protocol TGModernGalleryItem;
@interface TGModernGalleryModel : NSObject
@property (nonatomic, strong) NSArray *items;
@property (nonatomic, strong, readonly) id<TGModernGalleryItem> focusItem;
@property (nonatomic, copy) void (^itemsUpdated)(id<TGModernGalleryItem>);
@property (nonatomic, copy) void (^focusOnItem)(id<TGModernGalleryItem>);
@property (nonatomic, copy) UIView *(^actionSheetView)();
@property (nonatomic, copy) UIViewController *(^viewControllerForModalPresentation)();
@property (nonatomic, copy) void (^dismiss)(bool, bool);
@property (nonatomic, copy) void (^dismissWhenReady)();
@property (nonatomic, copy) NSArray *(^visibleItems)();
- (void)_transitionCompleted;
- (void)_replaceItems:(NSArray *)items focusingOnItem:(id<TGModernGalleryItem>)item;
- (void)_focusOnItem:(id<TGModernGalleryItem>)item;
- (bool)_shouldAutorotate;
- (UIView<TGModernGalleryInterfaceView> *)createInterfaceView;
- (UIView<TGModernGalleryDefaultHeaderView> *)createDefaultHeaderView;
- (UIView<TGModernGalleryDefaultFooterView> *)createDefaultFooterView;
- (UIView<TGModernGalleryDefaultFooterAccessoryView> *)createDefaultLeftAccessoryView;
- (UIView<TGModernGalleryDefaultFooterAccessoryView> *)createDefaultRightAccessoryView;
@end