Adds support for image previews
Just need to append ?preview=1 to attachment fetch operation.
This commit is contained in:
@@ -18,12 +18,18 @@ struct IMFileLocation_t {
|
||||
int _field5;
|
||||
};
|
||||
|
||||
struct IMPreviewConstraints {
|
||||
double _field1;
|
||||
struct CGSize _field2;
|
||||
double _field3;
|
||||
char _field4;
|
||||
};
|
||||
typedef struct IMPreviewConstraints {
|
||||
CGFloat maxPxWidth;
|
||||
CGSize minThumbnailPxSize;
|
||||
CGFloat scale;
|
||||
BOOL isSticker;
|
||||
BOOL generateMetadata;
|
||||
} IMPreviewConstraints;
|
||||
|
||||
extern IMPreviewConstraints IMPreviewConstraintsFromDictionary(NSDictionary *dictionary);
|
||||
extern NSDictionary *IMPreviewConstraintsDictionaryFromConstraint(IMPreviewConstraints constraint);
|
||||
extern BOOL IMPreviewConstraintsEqualToConstraints(IMPreviewConstraints constraints1, IMPreviewConstraints constraints2);
|
||||
extern IMPreviewConstraints IMPreviewConstraintsZero(void);
|
||||
|
||||
struct _TidyDoc {
|
||||
int _field1;
|
||||
@@ -155,6 +161,8 @@ struct __va_list_tag {
|
||||
- (void)setObject:(id)arg1 forKey:(id)arg2;
|
||||
@end
|
||||
|
||||
extern NSURL* IMAttachmentPreviewFileURL(NSURL *attachmentURL, NSString *extension, BOOL generateIntermediaryDirectories);
|
||||
|
||||
@protocol IMPreviewGeneratorProtocol
|
||||
+ (BOOL)shouldShadePreview;
|
||||
+ (BOOL)shouldScaleUpPreview;
|
||||
|
||||
Reference in New Issue
Block a user