Class DialogNewPageFactory

  • All Implemented Interfaces:
    com.pspdfkit.document.editor.page.NewPageFactory

    
    public final class DialogNewPageFactory
     implements NewPageFactory
                        

    A factory for creating new pages using the NewPageDialog. This factory requires a to show the dialog.

    • Method Detail

      • onCreateNewPage

         void onCreateNewPage(@NonNull() NewPageFactory.OnNewPageReadyListener callback)

        This method is called every time the factory should create a NewPage instance. Since creation of the new page can be a longer running asynchronous operation (for example via a page configuration dialog shown to the user) this method receives a callback that the factory can call once the new page is ready.

        Parameters:
        callback - OnNewPageReadyListener for notifying the editor once the new page is ready.