PSPDFNewPageViewControllerDelegate

@protocol PSPDFNewPageViewControllerDelegate <NSObject, PSPDFOverridable>

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: PSPDFNewPageViewController, didFinishSelecting configuration: PSPDFNewPageConfiguration?, pageCount: PageCount)

    Parameters

    controller

    The PSPDFNewPageViewController instance.

    configuration

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

    pageCount

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

  • Deprecated

    Deprecated in PSPDFKit 7.7 for iOS. Use -[PSPDFNewPageViewControllerDelegate newPageController:didFinishSelectingConfiguration:pageCount:].

    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;