mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-08-27 22:20:23 +02:00
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
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
|