PSPDFGalleryViewController


@interface PSPDFGalleryViewController
    : PSPDFBaseViewController <PSPDFOverridable, PSPDFMultimediaViewController>

Handles a gallery of one or multiple images, videos, audio or even web content.

  • The current state.

    Declaration

    Objective-C

    @property (readonly, nonatomic) PSPDFGalleryViewControllerState state;

    Swift

    var state: PSPDFGalleryViewControllerState { get }
  • All items of this gallery. Only set if state is PSPDFGalleryViewControllerStateReady.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable)
        NSArray<__kindof PSPDFGalleryItem *> *items;

    Swift

    var items: [PSPDFGalleryItem]? { get }
  • The link annotation that was used to instantiate the view controller.

    Declaration

    Objective-C

    @property (readonly, nonatomic) PSPDFLinkAnnotation *_Nonnull linkAnnotation;

    Swift

    var linkAnnotation: PSPDFLinkAnnotation { get }
  • Used to enter or exit the fullscreen mode. - see: setFullscreen:animated:.

    Declaration

    Objective-C

    @property (getter=isFullscreen, assign, readwrite, nonatomic) BOOL fullscreen;

    Swift

    var isFullscreen: Bool { get set }
  • Used to enter or exit the fullscreen mode with or without animation. The transition is only initiated, if all gallery items support fullscreen presentation. - warning: If you use this property programmatically, you must set it to NO once you’re done with your instance of PSPDFGalleryViewController!

    Declaration

    Objective-C

    - (void)setFullscreen:(BOOL)fullscreen animated:(BOOL)animated;

    Swift

    func setFullscreen(_ fullscreen: Bool, animated: Bool)
  • The current zoom scale. Only valid when displayed as an embedded gallery within a PDF document. Defaults to 1.0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat zoomScale;

    Swift

    var zoomScale: CGFloat { get set }
  • Single-Tap: Show/Hide image description.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        UITapGestureRecognizer *_Nonnull singleTapGestureRecognizer;

    Swift

    var singleTapGestureRecognizer: NSPanGestureRecognizer { get }
  • Double-Tap: Toggle Full-Screen.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        UITapGestureRecognizer *_Nonnull doubleTapGestureRecognizer;

    Swift

    var doubleTapGestureRecognizer: NSPanGestureRecognizer { get }
  • Pan: Dismiss Full-Screen mode.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        UIPanGestureRecognizer *_Nonnull panGestureRecognizer;

    Swift

    var panGestureRecognizer: NSPanGestureRecognizer { get }