session-ios/SignalUtilitiesKit/Media Viewing & Editing/AttachmentSharing.h

34 lines
1.1 KiB
C
Raw Normal View History

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;
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
+ (void)showShareUIForAttachments:(NSArray<TSAttachmentStream *> *)attachmentStreams
completion:(nullable AttachmentSharingCompletion)completion;
2017-02-16 23:59:40 +01:00
+ (void)showShareUIForAttachment:(TSAttachmentStream *)stream;
+ (void)showShareUIForAttachment:(TSAttachmentStream *)stream completion:(nullable AttachmentSharingCompletion)completion;
2017-02-16 23:59:40 +01: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