mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-06 03:20:39 +00:00
67 lines
2.6 KiB
Objective-C
67 lines
2.6 KiB
Objective-C
#import <LegacyComponents/TGViewController.h>
|
|
|
|
@class TGMediaPickerLayoutMetrics;
|
|
@class TGMediaSelectionContext;
|
|
@class TGMediaEditingContext;
|
|
@class TGMediaPickerSelectionGestureRecognizer;
|
|
@class TGMediaAssetsPallete;
|
|
|
|
@protocol TGPhotoPaintStickersContext;
|
|
|
|
@interface TGMediaPickerController : TGViewController <UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout>
|
|
{
|
|
TGMediaPickerLayoutMetrics *_layoutMetrics;
|
|
CGFloat _collectionViewWidth;
|
|
UICollectionView *_collectionView;
|
|
UIView *_wrapperView;
|
|
TGMediaPickerSelectionGestureRecognizer *_selectionGestureRecognizer;
|
|
}
|
|
|
|
@property (nonatomic, strong) id<TGPhotoPaintStickersContext> stickersContext;
|
|
@property (nonatomic, assign) bool localMediaCacheEnabled;
|
|
@property (nonatomic, assign) bool captionsEnabled;
|
|
@property (nonatomic, assign) bool allowCaptionEntities;
|
|
@property (nonatomic, assign) bool inhibitDocumentCaptions;
|
|
@property (nonatomic, assign) bool shouldStoreAssets;
|
|
@property (nonatomic, assign) bool hasTimer;
|
|
@property (nonatomic, assign) bool onlyCrop;
|
|
@property (nonatomic, assign) bool inhibitMute;
|
|
@property (nonatomic, strong) NSString *recipientName;
|
|
@property (nonatomic, assign) bool hasSilentPosting;
|
|
@property (nonatomic, assign) bool hasSchedule;
|
|
@property (nonatomic, assign) bool reminder;
|
|
@property (nonatomic, assign) bool hasCoverButton;
|
|
|
|
@property (nonatomic, assign) bool forum;
|
|
@property (nonatomic, assign) bool isSuggesting;
|
|
|
|
@property (nonatomic, copy) void (^presentScheduleController)(bool, void (^)(int32_t));
|
|
@property (nonatomic, copy) void (^presentTimerController)(void (^)(int32_t));
|
|
|
|
@property (nonatomic, assign) CGFloat topInset;
|
|
|
|
@property (nonatomic, strong) TGMediaAssetsPallete *pallete;
|
|
|
|
@property (nonatomic, readonly) TGMediaSelectionContext *selectionContext;
|
|
@property (nonatomic, readonly) TGMediaEditingContext *editingContext;
|
|
|
|
@property (nonatomic, copy) void (^catchToolbarView)(bool enabled);
|
|
|
|
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context selectionContext:(TGMediaSelectionContext *)selectionContext editingContext:(TGMediaEditingContext *)editingContext;
|
|
- (NSArray *)resultSignals:(id (^)(id, NSString *, NSString *))descriptionGenerator;
|
|
|
|
- (NSUInteger)_numberOfItems;
|
|
- (id)_itemAtIndexPath:(NSIndexPath *)indexPath;
|
|
- (SSignal *)_signalForItem:(id)item;
|
|
- (NSString *)_cellKindForItem:(id)item;
|
|
- (Class)_collectionViewClass;
|
|
- (UICollectionViewLayout *)_collectionLayout;
|
|
|
|
- (void)_hideCellForItem:(id)item animated:(bool)animated;
|
|
- (void)_adjustContentOffsetToBottom;
|
|
|
|
- (void)_setupSelectionGesture;
|
|
- (void)_cancelSelectionGestureRecognizer;
|
|
|
|
@end
|