PSPDFLinkAnnotationBaseView


@interface PSPDFLinkAnnotationBaseView : UIView <PSPDFAnnotationPresenting>

Base class for all link-annotation subclasses.

  • Saves the attached link annotation.

    Declaration

    Objective-C

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

    Swift

    var linkAnnotation: PSPDFLinkAnnotation { get }
  • Defaults to a zIndex of 1.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSUInteger zIndex;

    Swift

    var zIndex: UInt { get set }
  • Internal content view. Subclasses should add content to that view.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UIView *_Nonnull contentView;

    Swift

    var contentView: NSView { get }
  • Associated weak reference to then PSPDFPageView.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) PSPDFPageView *_Nullable pageView;

    Swift

    weak var pageView: PSPDFPageView? { get set }
  • Called when the annotation changes.

    Declaration

    Objective-C

    - (void)prepareForReuse;

    Swift

    func prepareForReuse()
  • Called each time the annotation changes or if the content view is about to be displayed.

    Declaration

    Objective-C

    - (void)populateContentView;

    Swift

    func populateContentView()
  • Will show/hide the content view.

    Declaration

    Objective-C

    - (void)setContentViewVisible:(BOOL)visible animated:(BOOL)animated;

    Swift

    func setContentViewVisible(_ visible: Bool, animated: Bool)
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFLinkAnnotationBaseView : UIView <PSPDFAnnotationPresenting>