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.
55 lines
1.6 KiB
C
55 lines
1.6 KiB
C
11 years ago
|
//
|
||
6 years ago
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
11 years ago
|
//
|
||
|
|
||
5 years ago
|
#import <SignalUtilitiesKit/OWSViewController.h>
|
||
8 years ago
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
11 years ago
|
|
||
7 years ago
|
@protocol ConversationViewItem;
|
||
|
|
||
7 years ago
|
@class GalleryItemBox;
|
||
7 years ago
|
@class MediaDetailViewController;
|
||
7 years ago
|
@class TSAttachment;
|
||
8 years ago
|
|
||
7 years ago
|
typedef NS_OPTIONS(NSInteger, MediaGalleryOption) {
|
||
|
MediaGalleryOptionSliderEnabled = 1 << 0,
|
||
|
MediaGalleryOptionShowAllMediaButton = 1 << 1
|
||
|
};
|
||
|
|
||
7 years ago
|
@protocol MediaDetailViewControllerDelegate <NSObject>
|
||
|
|
||
7 years ago
|
- (void)mediaDetailViewController:(MediaDetailViewController *)mediaDetailViewController
|
||
7 years ago
|
requestDeleteAttachment:(TSAttachment *)attachment;
|
||
7 years ago
|
|
||
7 years ago
|
- (void)mediaDetailViewController:(MediaDetailViewController *)mediaDetailViewController
|
||
|
isPlayingVideo:(BOOL)isPlayingVideo;
|
||
|
|
||
7 years ago
|
- (void)mediaDetailViewControllerDidTapMedia:(MediaDetailViewController *)mediaDetailViewController;
|
||
|
|
||
7 years ago
|
@end
|
||
|
|
||
7 years ago
|
@interface MediaDetailViewController : OWSViewController
|
||
11 years ago
|
|
||
7 years ago
|
@property (nonatomic, weak) id<MediaDetailViewControllerDelegate> delegate;
|
||
7 years ago
|
@property (nonatomic, readonly) GalleryItemBox *galleryItemBox;
|
||
7 years ago
|
|
||
8 years ago
|
// If viewItem is non-null, long press will show a menu controller.
|
||
7 years ago
|
- (instancetype)initWithGalleryItemBox:(GalleryItemBox *)galleryItemBox
|
||
7 years ago
|
viewItem:(nullable id<ConversationViewItem>)viewItem;
|
||
7 years ago
|
#pragma mark - Actions
|
||
|
|
||
|
- (void)didPressPlayBarButton:(id)sender;
|
||
|
- (void)didPressPauseBarButton:(id)sender;
|
||
|
- (void)playVideo;
|
||
|
|
||
|
// Stops playback and rewinds
|
||
7 years ago
|
- (void)stopAnyVideo;
|
||
11 years ago
|
|
||
7 years ago
|
- (void)setShouldHideToolbars:(BOOL)shouldHideToolbars;
|
||
|
- (void)zoomOutAnimated:(BOOL)isAnimated;
|
||
11 years ago
|
|
||
|
@end
|
||
8 years ago
|
|
||
|
NS_ASSUME_NONNULL_END
|