Signal-iOS/SignalUI/UI/AttachmentSharing.h
2021-10-19 09:39:53 -03:00

41 lines
1.2 KiB
Objective-C

//
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class TSAttachmentStream;
typedef void (^AttachmentSharingCompletion)(void);
@interface AttachmentSharing : NSObject
+ (void)showShareUIForAttachment:(TSAttachmentStream *)stream sender:(nullable id)sender;
+ (void)showShareUIForAttachments:(NSArray<TSAttachmentStream *> *)attachments sender:(nullable id)sender;
+ (void)showShareUIForURL:(NSURL *)url sender:(nullable id)sender;
+ (void)showShareUIForURL:(NSURL *)url
sender:(nullable id)sender
completion:(nullable AttachmentSharingCompletion)completion;
+ (void)showShareUIForURLs:(NSArray<NSURL *> *)urls
sender:(nullable id)sender
completion:(nullable AttachmentSharingCompletion)completion;
+ (void)showShareUIForText:(NSString *)text sender:(nullable id)sender;
+ (void)showShareUIForText:(NSString *)text
sender:(nullable id)sender
completion:(nullable AttachmentSharingCompletion)completion;
#ifdef DEBUG
+ (void)showShareUIForUIImage:(UIImage *)image;
#endif
@end
NS_ASSUME_NONNULL_END