PTThumbnailSliderView


@interface PTThumbnailSliderView
    : UIView <PTOverridable, UICollectionViewDataSource,
              UICollectionViewDelegate>

A PTThumbnailSliderView object shows a set of page thumbnails for a PTPDFViewCtrl‘s current document. The view also acts similar to a UISlider control, allowing the current page of the associated PTPDFViewCtrl to be changed with tap, pan, and long-press gestures on the pages.

  • Initializes a new PTThumbnailSliderView instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPDFViewCtrl:
        (nonnull PTPDFViewCtrl *)pdfViewCtrl;

    Swift

    init(pdfViewCtrl: PTPDFViewCtrl)
  • Initializes a new PTThumbnailSliderView instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithToolManager:
        (nonnull PTToolManager *)toolManager;

    Swift

    convenience init(toolManager: PTToolManager)
  • The PDFViewCtrl used to provide page thumbnails and document information to this view.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) PTPDFViewCtrl *_Nonnull pdfViewCtrl;

    Swift

    var pdfViewCtrl: PTPDFViewCtrl { get }
  • The tool manager used by this view.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) PTToolManager *toolManager;

    Swift

    var toolManager: PTToolManager? { get }
  • Whether the view is currently tracking touch events.

    Declaration

    Objective-C

    @property (nonatomic, getter=isTracking) BOOL tracking;

    Swift

    var isTracking: Bool { get set }
  • The maximum value of the magnification effect shown while tracking a touch. The default value is 1.5.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat magnification;

    Swift

    var magnification: CGFloat { get set }
  • Whether the speed of scrubbing is adjusted when dragging vertically while scrubbing. The default value is YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL adjustsScrubbingSpeed;

    Swift

    var adjustsScrubbingSpeed: Bool { get set }
  • The collection view used by the view.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UICollectionView *_Nonnull collectionView;

    Swift

    var collectionView: UICollectionView { get }
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;