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

63 lines
1.1 KiB
Objective-C

#import "TGModernGalleryModel.h"
@implementation TGModernGalleryModel
- (void)_transitionCompleted
{
}
- (void)_replaceItems:(NSArray *)items focusingOnItem:(id<TGModernGalleryItem>)item
{
TGDispatchOnMainThread(^
{
_items = items;
_focusItem = item;
if (_itemsUpdated)
_itemsUpdated(item);
});
}
- (void)_focusOnItem:(id<TGModernGalleryItem>)item
{
TGDispatchOnMainThread(^
{
_focusItem = item;
if (_focusOnItem)
_focusOnItem(item);
});
}
- (bool)_shouldAutorotate
{
return true;
}
- (UIView<TGModernGalleryInterfaceView> *)createInterfaceView
{
return nil;
}
- (UIView<TGModernGalleryDefaultHeaderView> *)createDefaultHeaderView
{
return nil;
}
- (UIView<TGModernGalleryDefaultFooterView> *)createDefaultFooterView
{
return nil;
}
- (UIView<TGModernGalleryDefaultFooterAccessoryView> *)createDefaultLeftAccessoryView
{
return nil;
}
- (UIView<TGModernGalleryDefaultFooterAccessoryView> *)createDefaultRightAccessoryView
{
return nil;
}
@end