PTThumbnailSliderViewController

@interface PTThumbnailSliderViewController : UIViewController <PTOverridable>

The PTThumbnailSliderViewController uses PDFViewCtrl’s GetThumbAsync API to show thumbnails of the current page as the slider is moved.

  • Returns a new instance of a PTThumbnailSliderViewController.

    Declaration

    Objective-C

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

    Swift

    init(pdfViewCtrl: PTPDFViewCtrl)

    Parameters

    pdfViewCtrl

    The PTPDFViewCtrl instance that the control will coordinate with.

  • Returns a new instance of a PTThumbnailSliderViewController.

    Declaration

    Objective-C

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

    Swift

    convenience init(toolManager: PTToolManager)

    Parameters

    toolManager

    The PTToolManager instance that the control will coordinate with.

  • The PTPDFViewCtrl instance that this control coordinates with.

    Declaration

    Objective-C

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

    Swift

    var pdfViewCtrl: PTPDFViewCtrl { get }
  • The PTToolManager instance that this control coordinates with.

    Declaration

    Objective-C

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

    Swift

    var toolManager: PTToolManager? { get }
  • The UIToolbar shown by this control as the view controller’s view.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) UIToolbar *_Nonnull toolbar;

    Swift

    var toolbar: UIToolbar { get }
  • The UISlider shown by this control. To show the slider,

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) UISlider *_Nonnull slider;

    Swift

    var slider: UISlider { get }
  • The PTThumbnailSliderView shown by this control.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        PTThumbnailSliderView *_Nonnull thumbnailSliderView;

    Swift

    var thumbnailSliderView: PTThumbnailSliderView { get }
  • The view currently shown by this control to change pages in the document. The default value is the PTThumbnailSliderView in the thumbnailSliderView property.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIView *_Nonnull contentView;

    Swift

    var contentView: UIView { get set }
  • Whether the control is currently tracking touch events.

    Declaration

    Objective-C

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

    Swift

    var isTracking: Bool { get }
  • The toolbar item placed to the left (leading end) of the slider control. When leadingToolbarItems is used, this is the first item in the list.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        UIBarButtonItem *leadingToolbarItem;

    Swift

    var leadingToolbarItem: UIBarButtonItem? { get set }
  • The toolbar items placed to the left (leading end) of the slider control.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<UIBarButtonItem *> *leadingToolbarItems;

    Swift

    var leadingToolbarItems: [UIBarButtonItem]? { get set }
  • The toolbar item placed to the right (trailing end) of the slider control. When trailingToolbarItems is used, this is the first item in the list.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        UIBarButtonItem *trailingToolbarItem;

    Swift

    var trailingToolbarItem: UIBarButtonItem? { get set }
  • The toolbar items placed to the right (trailing end) of the slider control.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<UIBarButtonItem *> *trailingToolbarItems;

    Swift

    var trailingToolbarItems: [UIBarButtonItem]? { get set }
  • An object that conforms to the PTThumbnailSliderViewDelegate protocol.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<PTThumbnailSliderViewDelegate>
        delegate;

    Swift

    weak var delegate: PTThumbnailSliderViewDelegate? { get set }