mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
28 lines
947 B
Objective-C
28 lines
947 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
#import <LegacyComponents/TGModernGalleryItem.h>
|
|
|
|
#import <SSignalKit/SSignalKit.h>
|
|
|
|
@class TGImageInfo;
|
|
@class TGImageView;
|
|
@class TGMediaOriginInfo;
|
|
|
|
@interface TGModernGalleryImageItem : NSObject <TGModernGalleryItem>
|
|
|
|
@property (nonatomic, readonly) NSString *uri;
|
|
@property (nonatomic, copy, readonly) dispatch_block_t (^loader)(TGImageView *, bool);
|
|
|
|
@property (nonatomic, readonly) CGSize imageSize;
|
|
@property (nonatomic, strong) NSArray *embeddedStickerDocuments;
|
|
@property (nonatomic) bool hasStickers;
|
|
@property (nonatomic) int64_t imageId;
|
|
@property (nonatomic) int64_t accessHash;
|
|
@property (nonatomic, strong) TGMediaOriginInfo *originInfo;
|
|
|
|
- (instancetype)initWithUri:(NSString *)uri imageSize:(CGSize)imageSize;
|
|
- (instancetype)initWithLoader:(dispatch_block_t (^)(TGImageView *, bool))loader imageSize:(CGSize)imageSize;
|
|
- (instancetype)initWithSignal:(SSignal *)signal imageSize:(CGSize)imageSize;
|
|
|
|
@end
|