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 (nonatomic, strong, readonly) PTPDFViewCtrl *_Nonnull pdfViewCtrl;

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) 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 (nonatomic, strong) UIView *_Nonnull contentView;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly, getter=isTracking) 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 (nonatomic, strong, 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 (nonatomic, copy, 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 (nonatomic, strong, 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 (nonatomic, copy, nullable) NSArray<UIBarButtonItem *> *trailingToolbarItems;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    weak var delegate: (any PTThumbnailSliderViewDelegate)? { get set }
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;