PSPDFMultiDocumentListControllerDelegate

Objective-C

@protocol PSPDFMultiDocumentListControllerDelegate<NSObject>

@optional

/// Informs the delegate that the user selected a document from the list.
/// Typically, the presenting view controller will implement this method to dismiss the multi-document list controller.
///
/// @note The multi-document list controller automatically changes the visible document of its `tabbedViewController` at the same time as calling this method.
- (void)multiDocumentListController:(PSPDFMultiDocumentListController *)multiDocumentListController didSelectDocumentAtIndex:(NSUInteger)idx;

/// Informs the delegate that the user tapped the cancel button in the navigation bar containing the multi-document list controller.
/// By default, the multi-document list controller sets a cancel button as the `leftBarButtonItem` of its `navigationItem`.
/// This method will not be called if the multi-document list controller is not inside a navigation controller.
- (void)multiDocumentListControllerDidCancel:(PSPDFMultiDocumentListController *)multiDocumentListController;

@end

Swift

protocol MultiDocumentListControllerDelegate : NSObjectProtocol

Undocumented

  • Informs the delegate that the user selected a document from the list. Typically, the presenting view controller will implement this method to dismiss the multi-document list controller.

    Note

    The multi-document list controller automatically changes the visible document of its tabbedViewController at the same time as calling this method.

    Declaration

    Objective-C

    - (void)multiDocumentListController:(nonnull PSPDFMultiDocumentListController *)
                                            multiDocumentListController
               didSelectDocumentAtIndex:(NSUInteger)idx;

    Swift

    optional func multiDocumentListController(_ multiDocumentListController: MultiDocumentListController, didSelectDocumentAt idx: UInt)
  • Informs the delegate that the user tapped the cancel button in the navigation bar containing the multi-document list controller. By default, the multi-document list controller sets a cancel button as the leftBarButtonItem of its navigationItem. This method will not be called if the multi-document list controller is not inside a navigation controller.

    Declaration

    Objective-C

    - (void)multiDocumentListControllerDidCancel:
        (nonnull PSPDFMultiDocumentListController *)multiDocumentListController;

    Swift

    optional func multiDocumentListControllerDidCancel(_ multiDocumentListController: MultiDocumentListController)