LuxChat  2.0
Instant messenger for iOS
Instance Methods | List of all members
<JTSImageViewControllerOptionsDelegate> Protocol Reference

#import <JTSImageViewController.h>

Inheritance diagram for <JTSImageViewControllerOptionsDelegate>:

Instance Methods

(BOOL) - imageViewerShouldFadeThumbnailsDuringPresentationAndDismissal:
 
(UIFont *) - fontForAltTextInImageViewer:
 
(UIColor *) - accentColorForAltTextInImageViewer:
 
(UIColor *) - backgroundColorImageViewInImageViewer:
 
(CGFloat) - alphaForBackgroundDimmingOverlayInImageViewer:
 
(CGFloat) - backgroundBlurRadiusForImageViewer:
 

Detailed Description


Options Delegate

Method Documentation

- (UIColor *) accentColorForAltTextInImageViewer: (JTSImageViewController *)  imageView
optional

The tint color applied to tappable text and selection controls.

This method is only used with JTSImageViewControllerMode_AltText.

- (CGFloat) alphaForBackgroundDimmingOverlayInImageViewer: (JTSImageViewController *)  imageViewer
optional

Defaults to JTSImageViewController_DefaultAlphaForBackgroundDimmingOverlay.

- (CGFloat) backgroundBlurRadiusForImageViewer: (JTSImageViewController *)  imageViewer
optional

Used with a JTSImageViewControllerBackgroundStyle_ScaledDimmedBlurred background style.

Defaults to JTSImageViewController_DefaultBackgroundBlurRadius. The larger the radius, the more profound the blur effect. Larger radii may lead to decreased performance on older devices. To offset this, JTSImageViewController applies the blur effect to a scaled-down snapshot of the background view.

- (UIColor *) backgroundColorImageViewInImageViewer: (JTSImageViewController *)  imageViewer
optional

The background color of the image view itself, not to be confused with the background color for the view controller's view.

You may wish to override this method if displaying an image with dark content on an otherwise clear background color (such as images from the XKCD What If? site).

The default color is [UIColor clearColor].

- (UIFont *) fontForAltTextInImageViewer: (JTSImageViewController *)  imageViewer
optional

The font used in the alt text mode's text view.

This method is only used with JTSImageViewControllerMode_AltText.

- (BOOL) imageViewerShouldFadeThumbnailsDuringPresentationAndDismissal: (JTSImageViewController *)  imageViewer
optional

Return YES if you want the image thumbnail to fade to/from zero during presentation and dismissal animations.

This may be helpful if the reference image in your presenting view controller has been dimmed, such as for a dark mode. JTSImageViewController otherwise presents the animated image view at full opacity, which can look jarring.


The documentation for this protocol was generated from the following file: