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.
50 lines
1.5 KiB
Objective-C
50 lines
1.5 KiB
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <SignalMessaging/OWSViewController.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class ConversationViewItem;
|
|
@class MediaDetailViewController;
|
|
@class SignalAttachment;
|
|
@class TSAttachmentStream;
|
|
|
|
@protocol MediaDetailViewControllerDelegate <NSObject>
|
|
|
|
- (void)dismissSelfAnimated:(BOOL)isAnimated completion:(void (^_Nullable)(void))completionBlock;
|
|
- (void)mediaDetailViewController:(MediaDetailViewController *)mediaDetailViewController
|
|
isPlayingVideo:(BOOL)isPlayingVideo;
|
|
|
|
@end
|
|
|
|
@interface MediaDetailViewController : OWSViewController
|
|
|
|
@property (nonatomic, weak) id<MediaDetailViewControllerDelegate> delegate;
|
|
|
|
// If viewItem is non-null, long press will show a menu controller.
|
|
- (instancetype)initWithAttachmentStream:(TSAttachmentStream *)attachmentStream
|
|
viewItem:(ConversationViewItem *_Nullable)viewItem;
|
|
|
|
- (void)presentFromViewController:(UIViewController *)viewController
|
|
replacingView:(UIView *)view NS_SWIFT_NAME(present(fromViewController:replacingView:));
|
|
|
|
#pragma mark - Actions
|
|
|
|
- (void)didPressShare:(id)sender;
|
|
- (void)didPressDelete:(id)sender;
|
|
- (void)didPressPlayBarButton:(id)sender;
|
|
- (void)didPressPauseBarButton:(id)sender;
|
|
- (void)playVideo;
|
|
|
|
// Stops playback and rewinds
|
|
- (void)stopVideo;
|
|
|
|
- (void)setShouldHideToolbars:(BOOL)shouldHideToolbars;
|
|
- (void)zoomOutAnimated:(BOOL)isAnimated;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|