PSPDFDocumentInfoController

@protocol PSPDFDocumentInfoController

Conforming to this protocol indicated, that the view controller can be used in the document info coordinator.

  • Initialize the controller with an optional document.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDocument:(nullable PSPDFDocument *)document;

    Swift

    init(document: PSPDFDocument?)
  • Reference to the attached document. Should be set in the initializer. May reload the controller when changed.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) PSPDFDocument *_Nullable document;

    Swift

    weak var document: PSPDFDocument? { get set }
  • Reference to the containing view controller.

    Declaration

    Objective-C

    @optional
    @property (readwrite, nonatomic)
        PSPDFContainerViewController *_Nullable container;

    Swift

    weak optional var container: PSPDFContainerViewController? { get set }
  • Queried to determine if the controller is presented as a popover, if the popover should be allowed to be dismissed.

    Declaration

    Objective-C

    @optional
    @property (readonly, nonatomic) BOOL allowDismissingPopover;

    Swift

    optional var allowDismissingPopover: Bool { get }