public static interface

NewPageFactory.OnNewPageReadyListener

com.pspdfkit.document.editor.page.NewPageFactory.OnNewPageReadyListener

Class Overview

Listens for return of a NewPage instance to the editor. The factory must ensure that it either calls onNewPageReady(NewPage) or onCancelled() for the page creation flow to properly finish.

Summary

Public Methods
abstract void onCancelled()
Called by the factory if creation of a new page was cancelled.
abstract void onNewPageReady(NewPage newPage)
Called by the factory when a NewPage instance is ready.

Public Methods

public abstract void onCancelled ()

Called by the factory if creation of a new page was cancelled. This usually happens due to user interaction, if the user decided to not create a page inside a user interface.

public abstract void onNewPageReady (NewPage newPage)

Called by the factory when a NewPage instance is ready. If the factory is backed by a user interface, this should usually be called when the user confirmed his settings.

Parameters
newPage NewPage instance that should be added to the document.