2017-02-16 23:59:40 +01:00
|
|
|
//
|
2018-01-18 19:39:52 +01:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-02-16 23:59:40 +01:00
|
|
|
//
|
|
|
|
|
2018-03-02 20:29:53 +01:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2017-02-16 23:59:40 +01:00
|
|
|
@class TSAttachmentStream;
|
|
|
|
|
2021-03-04 06:06:06 +01:00
|
|
|
typedef void (^AttachmentSharingCompletion)(UIActivityType __nullable activityType);
|
2018-03-02 20:29:53 +01:00
|
|
|
|
2017-02-16 23:59:40 +01:00
|
|
|
@interface AttachmentSharing : NSObject
|
|
|
|
|
2018-11-05 17:07:00 +01:00
|
|
|
+ (void)showShareUIForAttachments:(NSArray<TSAttachmentStream *> *)attachmentStreams
|
|
|
|
completion:(nullable AttachmentSharingCompletion)completion;
|
|
|
|
|
2017-02-16 23:59:40 +01:00
|
|
|
+ (void)showShareUIForAttachment:(TSAttachmentStream *)stream;
|
2021-03-04 06:06:06 +01:00
|
|
|
+ (void)showShareUIForAttachment:(TSAttachmentStream *)stream completion:(nullable AttachmentSharingCompletion)completion;
|
2017-02-16 23:59:40 +01:00
|
|
|
|
2017-03-29 23:54:11 +02:00
|
|
|
+ (void)showShareUIForURL:(NSURL *)url;
|
2018-03-02 20:29:53 +01:00
|
|
|
+ (void)showShareUIForURL:(NSURL *)url completion:(nullable AttachmentSharingCompletion)completion;
|
|
|
|
|
2018-11-12 16:44:39 +01:00
|
|
|
+ (void)showShareUIForURLs:(NSArray<NSURL *> *)urls completion:(nullable AttachmentSharingCompletion)completion;
|
|
|
|
|
2017-10-10 22:13:54 +02:00
|
|
|
+ (void)showShareUIForText:(NSString *)text;
|
2018-03-02 20:29:53 +01:00
|
|
|
+ (void)showShareUIForText:(NSString *)text completion:(nullable AttachmentSharingCompletion)completion;
|
|
|
|
|
2018-01-18 19:39:52 +01:00
|
|
|
#ifdef DEBUG
|
|
|
|
+ (void)showShareUIForUIImage:(UIImage *)image;
|
|
|
|
#endif
|
|
|
|
|
2017-02-16 23:59:40 +01:00
|
|
|
@end
|
2018-03-02 20:29:53 +01:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|