mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
36 lines
1.4 KiB
Objective-C
36 lines
1.4 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@class PHAssetCollection;
|
|
@class PHFetchResult;
|
|
@class ALAssetsGroup;
|
|
|
|
typedef enum {
|
|
TGMediaPickerAssetsGroupSubtypeCameraRoll,
|
|
TGMediaPickerAssetsGroupSubtypeFavorites,
|
|
TGMediaPickerAssetsGroupSubtypePanoramas,
|
|
TGMediaPickerAssetsGroupSubtypeVideos,
|
|
TGMediaPickerAssetsGroupSubtypeSlomo,
|
|
TGMediaPickerAssetsGroupSubtypeTimelapses,
|
|
TGMediaPickerAssetsGroupSubtypeBursts,
|
|
TGMediaPickerAssetsGroupSubtypeRegular
|
|
} TGMediaPickerAssetGroupSubtype;
|
|
|
|
@interface TGMediaPickerAssetsGroup : NSObject
|
|
|
|
@property (nonatomic, readonly) NSString *title;
|
|
@property (nonatomic, readonly) NSString *persistentId;
|
|
@property (nonatomic, readonly) NSUInteger assetCount;
|
|
@property (nonatomic, readonly) NSArray *latestAssets;
|
|
@property (nonatomic, readonly) bool isCameraRoll;
|
|
@property (nonatomic, readonly) TGMediaPickerAssetGroupSubtype subtype;
|
|
|
|
@property (nonatomic, readonly) PHAssetCollection *backingAssetCollection;
|
|
@property (nonatomic, readonly) PHFetchResult *backingFetchResult;
|
|
@property (nonatomic, readonly) ALAssetsGroup *backingAssetsGroup;
|
|
|
|
- (instancetype)initWithPHAssetCollection:(PHAssetCollection *)assetCollection fetchResult:(PHFetchResult *)fetchResult latestAssets:(NSArray *)latestAssets;
|
|
- (instancetype)initWithPHFetchResult:(PHFetchResult *)fetchResult latestAssets:(NSArray *)latestAssets;
|
|
- (instancetype)initWithALAssetsGroup:(ALAssetsGroup *)assetsGroup latestAssets:(NSArray *)latestAssets;
|
|
|
|
@end
|