PSPDFNewPageViewControllerDelegate

Objective-C

@protocol PSPDFNewPageViewControllerDelegate <NSObject>

Swift

protocol PDFNewPageViewControllerDelegate : NSObjectProtocol

Delegate that allows connecting a PSPDFNewPageViewController to receive the event when a selection has been chosen.

  • Called when the selection process completes (i.e., the commit button is pressed). The delegate should dismiss the view controller at this point. New page action should be ignored if configuration is nil.

    Declaration

    Objective-C

    - (void)newPageController:(nonnull PSPDFNewPageViewController *)controller
        didFinishSelectingConfiguration:
            (nullable PSPDFNewPageConfiguration *)configuration
                              pageCount:(PSPDFPageCount)pageCount;

    Swift

    func newPageController(_ controller: PDFNewPageViewController, didFinishSelecting configuration: PDFNewPageConfiguration?, pageCount: PageCount)

    Parameters

    controller
    configuration

    The configuration with which the new page(s) should be created.

    pageCount

    The number of pages that should be created with the configuration.