2014-10-29 21:58:58 +01:00
|
|
|
//
|
2018-01-08 05:33:25 +01:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2014-10-29 21:58:58 +01:00
|
|
|
//
|
|
|
|
|
2017-07-25 19:23:23 +02:00
|
|
|
#import "OWSViewController.h"
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
2014-10-29 21:58:58 +01:00
|
|
|
|
2017-10-10 22:13:54 +02:00
|
|
|
@class ConversationViewItem;
|
2017-10-24 19:24:33 +02:00
|
|
|
@class SignalAttachment;
|
2017-10-10 22:13:54 +02:00
|
|
|
@class TSAttachmentStream;
|
|
|
|
|
2018-01-08 05:33:25 +01:00
|
|
|
@interface MediaDetailViewController : OWSViewController
|
2014-10-29 21:58:58 +01:00
|
|
|
|
2017-10-24 19:24:33 +02:00
|
|
|
// If viewItem is non-null, long press will show a menu controller.
|
|
|
|
- (instancetype)initWithAttachmentStream:(TSAttachmentStream *)attachmentStream
|
|
|
|
fromRect:(CGRect)rect
|
|
|
|
viewItem:(ConversationViewItem *_Nullable)viewItem;
|
|
|
|
|
|
|
|
- (instancetype)initWithAttachment:(SignalAttachment *)attachment fromRect:(CGRect)rect;
|
2014-10-29 21:58:58 +01:00
|
|
|
|
2018-01-12 06:17:06 +01:00
|
|
|
- (void)presentFromViewController:(UIViewController *)viewController replacingView:(UIView *)view;
|
2014-10-29 21:58:58 +01:00
|
|
|
|
|
|
|
@end
|
2017-07-25 19:23:23 +02:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|