LuxChat  2.0
Instant messenger for iOS
Instance Methods | Properties | List of all members
JTSImageViewController Class Reference

#import <JTSImageViewController.h>

Inheritance diagram for JTSImageViewController:

Instance Methods

(instancetype) - initWithImageInfo:mode:backgroundStyle:
 
(void) - showFromViewController:transition:
 
(void) - dismiss:
 

Properties

JTSImageInfoimageInfo
 
UIImage * image
 
JTSImageViewControllerMode mode
 
JTSImageViewControllerBackgroundOptions backgroundOptions
 
id< JTSImageViewControllerDismissalDelegatedismissalDelegate
 
id< JTSImageViewControllerOptionsDelegateoptionsDelegate
 
id< JTSImageViewControllerInteractionsDelegateinteractionsDelegate
 
id< JTSImageViewControllerAccessibilityDelegateaccessibilityDelegate
 
id< JTSImageViewControllerAnimationDelegateanimationDelegate
 

Detailed Description


JTSImageViewController


Implementation

Method Documentation

- (void) dismiss: (BOOL)  animated

Dismisses the image viewer. Must not be called while previous presentation or dismissal is still in flight.

- (instancetype) initWithImageInfo: (JTSImageInfo *)  imageInfo
mode: (JTSImageViewControllerMode)  mode
backgroundStyle: (JTSImageViewControllerBackgroundOptions)  backgroundOptions 

Designated initializer.

Parameters
imageInfoThe source info for image and transition metadata. Required.
modeThe mode to be used. (JTSImageViewController has an alternate alt text mode). Required.
backgroundStyleCurrently, either scaled-and-dimmed, or scaled-dimmed-and-blurred. The latter is like Tweetbot 3.0's background style.
- (void) showFromViewController: (UIViewController *)  viewController
transition: (JTSImageViewControllerTransition)  transition 

JTSImageViewController is presented from viewController as a UIKit modal view controller.

It's first presented as a full-screen modal without animation. At this stage the view controller is merely displaying a snapshot of viewController's topmost parentViewController's view.

Next, there is an animated transition to a full-screen image viewer.


The documentation for this class was generated from the following files: