|
LuxChat
2.0
Instant messenger for iOS
|
#import <JTSImageViewController.h>
Instance Methods | |
| (instancetype) | - initWithImageInfo:mode:backgroundStyle: |
| (void) | - showFromViewController:transition: |
| (void) | - dismiss: |
Properties | |
| JTSImageInfo * | imageInfo |
| UIImage * | image |
| JTSImageViewControllerMode | mode |
| JTSImageViewControllerBackgroundOptions | backgroundOptions |
| id< JTSImageViewControllerDismissalDelegate > | dismissalDelegate |
| id< JTSImageViewControllerOptionsDelegate > | optionsDelegate |
| id< JTSImageViewControllerInteractionsDelegate > | interactionsDelegate |
| id< JTSImageViewControllerAccessibilityDelegate > | accessibilityDelegate |
| id< JTSImageViewControllerAnimationDelegate > | animationDelegate |
| - (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.
| imageInfo | The source info for image and transition metadata. Required. |
| mode | The mode to be used. (JTSImageViewController has an alternate alt text mode). Required. |
| backgroundStyle | Currently, 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.
1.8.9.1