mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
15 lines
639 B
Objective-C
15 lines
639 B
Objective-C
#import <SSignalKit/SSignalKit.h>
|
|
|
|
@class TGDocumentMediaAttachment;
|
|
@class TGMemoryImageCache;
|
|
|
|
@interface TGSharedFileSignals : NSObject
|
|
|
|
+ (SSignal *)squareFileThumbnail:(TGDocumentMediaAttachment *)documentAttachment ofSize:(CGSize)size threadPool:(SThreadPool *)threadPool memoryCache:(TGMemoryImageCache *)memoryCache pixelProcessingBlock:(void (^)(void *, int, int, int))pixelProcessingBlock;
|
|
|
|
// returns Signal<[Signal<NSData>, Signal<NSNumber>]>
|
|
+ (SSignal *)documentData:(TGDocumentMediaAttachment *)document priority:(bool)priority;
|
|
+ (SSignal *)documentPath:(TGDocumentMediaAttachment *)document priority:(bool)priority;
|
|
|
|
@end
|