PSPDFVisiblePagesDataSource

@protocol PSPDFVisiblePagesDataSource <NSObject>

Defines what page(s) are currently visible.

  • The page that fills the majority of the screen.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger pageIndex;

    Swift

    var pageIndex: UInt { get }
  • All visible page indexes (wrapped as NSNumbers)

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        NSOrderedSet<NSNumber *> *_Nonnull visiblePageIndexes;

    Swift

    var visiblePageIndexes: NSOrderedSet { get }
  • Visible page numbers, calculated. This only includes the second page in double page mode. The main difference to visiblePageIndexes is that e.g. in continuous scroll mode, it only returns one page.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        NSOrderedSet<NSNumber *> *_Nonnull visiblePageIndexesCalculated;

    Swift

    var visiblePageIndexesCalculated: NSOrderedSet { get }