Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve how extensible the framework is by making it easier to subclass key components. Some refactoring along the way. #104

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ typedef NS_ENUM(NSUInteger, MHBackButtonState) {
@property (nonatomic) BOOL hideShare; //Default NO
@property (nonatomic) BOOL useCustomBackButtonImageOnImageViewer; //Default YES
@property (nonatomic) BOOL showOverView; //Default YES
@property (nonatomic) BOOL hideToolbar; //Default NO
@property (nonatomic) MHBackButtonState backButtonState; //Default MHBackButtonStateWithBackArrow

@property (nonatomic,strong) UICollectionViewFlowLayout *overViewCollectionViewLayoutLandscape;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
@property (nonatomic,getter = isHiddingToolBarAndNavigationBar) BOOL hiddingToolBarAndNavigationBar;

-(MHGalleryController*)galleryViewController;
-(MHImageViewController *)imageViewControllerForIndex:(NSUInteger)index;
-(void)updateToolBarForItem:(MHGalleryItem*)item;

-(void)playStopButtonPressed;
-(void)changeToPauseButton;
-(void)changeToPlayButton;
Expand All @@ -63,11 +65,16 @@
@property (nonatomic) BOOL videoWasPlayable;
@property (nonatomic) BOOL videoDownloaded;


-(void)changeUIForViewMode:(MHGalleryViewMode)viewMode;
-(void)updateUIForVideoFile;
-(void)stopMovie;
-(void)removeAllMoviePlayerViewsAndNotifications;
-(void)playButtonPressed;
-(void)centerImageView;
-(void)displayFileContents;

- (instancetype)initWithMHMediaItem:(MHGalleryItem*)item
viewController:(MHGalleryImageViewerViewController*)viewController;

+(MHImageViewController *)imageViewControllerForMHMediaItem:(MHGalleryItem*)item
viewController:(MHGalleryImageViewerViewController*)viewController;
Expand Down
Loading