PSPDFTabbedViewControllerDelegate
Objective-C
@protocol
PSPDFTabbedViewControllerDelegate <PSPDFMultiDocumentViewControllerDelegate>
Swift
protocol PDFTabbedViewControllerDelegate : MultiDocumentViewControllerDelegate
Delegate for the PDFTabbedViewController
.
-
Asks the delegate whether to change
visibleDocument
after a tab has been tapped. Defaults to accepting the change if this method is not implemented.Declaration
Objective-C
- (BOOL)tabbedPDFController: (nonnull PSPDFTabbedViewController *)tabbedPDFController shouldChangeVisibleDocument:(nullable PSPDFDocument *)newVisibleDocument;
Swift
optional func tabbedPDFController(_ tabbedPDFController: PDFTabbedViewController, shouldChangeVisibleDocument newVisibleDocument: Document?) -> Bool
-
Informs the delegate that
visibleDocument
has changed after a tab has been tapped.Declaration
Objective-C
- (void)tabbedPDFController: (nonnull PSPDFTabbedViewController *)tabbedPDFController didChangeVisibleDocument:(nullable PSPDFDocument *)oldVisibleDocument;
Swift
optional func tabbedPDFController(_ tabbedPDFController: PDFTabbedViewController, didChangeVisibleDocument oldVisibleDocument: Document?)
-
Asks the delegate whether to close a document after its close button has been tapped. Defaults to closing if this method is not implemented.
Declaration
Objective-C
- (BOOL)tabbedPDFController: (nonnull PSPDFTabbedViewController *)tabbedPDFController shouldCloseDocument:(nonnull PSPDFDocument *)document;
Swift
optional func tabbedPDFController(_ tabbedPDFController: PDFTabbedViewController, shouldClose document: Document) -> Bool
-
Informs the delegate that a document has been closed after its close button has been tapped.
Declaration
Objective-C
- (void)tabbedPDFController: (nonnull PSPDFTabbedViewController *)tabbedPDFController didCloseDocument:(nonnull PSPDFDocument *)document;
Swift
optional func tabbedPDFController(_ tabbedPDFController: PDFTabbedViewController, didClose document: Document)