mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
44 lines
1.4 KiB
Objective-C
44 lines
1.4 KiB
Objective-C
#import <LegacyComponents/TGMediaAssetFetchResultChange.h>
|
|
#import <LegacyComponents/TGMediaAssetImageSignals.h>
|
|
|
|
@class TGMediaAsset;
|
|
@class TGMediaSelectionContext;
|
|
|
|
@interface TGMediaAssetsPreheatMixin : NSObject
|
|
|
|
@property (nonatomic, copy) NSInteger (^assetCount)(void);
|
|
@property (nonatomic, copy) TGMediaAsset *(^assetAtIndexPath)(NSIndexPath *);
|
|
|
|
@property (nonatomic, assign) TGMediaAssetImageType imageType;
|
|
@property (nonatomic, assign) CGSize imageSize;
|
|
@property (nonatomic, assign) bool reversed;
|
|
|
|
- (instancetype)initWithCollectionView:(UICollectionView *)collectionView scrollDirection:(UICollectionViewScrollDirection)scrollDirection;
|
|
- (void)update;
|
|
- (void)stop;
|
|
|
|
@end
|
|
|
|
|
|
@interface TGMediaAssetsCollectionViewIncrementalUpdater : NSObject
|
|
|
|
+ (void)updateCollectionView:(UICollectionView *)collectionView withChange:(TGMediaAssetFetchResultChange *)change completion:(void (^)(bool incremental))completion;
|
|
|
|
@end
|
|
|
|
|
|
@interface TGMediaAssetsSaveToCameraRoll : NSObject
|
|
|
|
+ (void)saveImageAtURL:(NSURL *)url;
|
|
+ (void)saveImageWithData:(NSData *)imageData silentlyFail:(bool)silentlyFail completionBlock:(void (^)(bool))completionBlock;
|
|
+ (void)saveVideoAtURL:(NSURL *)url;
|
|
|
|
@end
|
|
|
|
|
|
@interface TGMediaAssetsDateUtils : NSObject
|
|
|
|
+ (NSString *)formattedDateRangeWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate currentDate:(NSDate *)currentDate shortDate:(bool)shortDate;
|
|
|
|
@end
|