Swiftgram/LegacyComponents/TGMediaPickerGallerySelectedItemsModel.h
Ilya Laktyushin 04a9ce1abb no message
2018-02-21 14:46:20 +03:00

20 lines
714 B
Objective-C

#import <Foundation/Foundation.h>
#import <LegacyComponents/TGMediaSelectionContext.h>
@class TGMediaSelectionContext;
@interface TGMediaPickerGallerySelectedItemsModel : NSObject
@property (nonatomic, copy) void (^selectionUpdated)(bool reload, bool incremental, bool add, NSInteger index);
@property (nonatomic, readonly) NSArray *items;
@property (nonatomic, readonly) NSArray *selectedItems;
@property (nonatomic, readonly) NSInteger totalCount;
@property (nonatomic, readonly) NSInteger selectedCount;
- (instancetype)initWithSelectionContext:(TGMediaSelectionContext *)selectionContext;
- (instancetype)initWithSelectionContext:(TGMediaSelectionContext *)selectionContext items:(NSArray *)items;
@end