mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
958 B
C
35 lines
958 B
C
8 years ago
|
//
|
||
7 years ago
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
8 years ago
|
//
|
||
|
|
||
7 years ago
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
8 years ago
|
@class TSAttachmentStream;
|
||
|
|
||
7 years ago
|
typedef void (^AttachmentSharingCompletion)(void);
|
||
|
|
||
8 years ago
|
@interface AttachmentSharing : NSObject
|
||
|
|
||
7 years ago
|
+ (void)showShareUIForAttachments:(NSArray<TSAttachmentStream *> *)attachmentStreams
|
||
|
completion:(nullable AttachmentSharingCompletion)completion;
|
||
|
|
||
8 years ago
|
+ (void)showShareUIForAttachment:(TSAttachmentStream *)stream;
|
||
|
|
||
8 years ago
|
+ (void)showShareUIForURL:(NSURL *)url;
|
||
|
|
||
7 years ago
|
+ (void)showShareUIForURL:(NSURL *)url completion:(nullable AttachmentSharingCompletion)completion;
|
||
|
|
||
7 years ago
|
+ (void)showShareUIForURLs:(NSArray<NSURL *> *)urls completion:(nullable AttachmentSharingCompletion)completion;
|
||
|
|
||
8 years ago
|
+ (void)showShareUIForText:(NSString *)text;
|
||
|
|
||
7 years ago
|
+ (void)showShareUIForText:(NSString *)text completion:(nullable AttachmentSharingCompletion)completion;
|
||
|
|
||
7 years ago
|
#ifdef DEBUG
|
||
|
+ (void)showShareUIForUIImage:(UIImage *)image;
|
||
|
#endif
|
||
|
|
||
8 years ago
|
@end
|
||
7 years ago
|
|
||
|
NS_ASSUME_NONNULL_END
|