Interface NewPageFactory.OnNewPageReadyListener
-
- All Implemented Interfaces:
public interface NewPageFactory.OnNewPageReadyListener
Listens for return of a NewPage instance to the editor. The factory must ensure that it either calls onNewPageReady or onCancelled for the page creation flow to properly finish.
-
-
Method Summary
Modifier and Type Method Description abstract void
onNewPageReady(@NonNull() NewPage newPage)
Called by the factory when a NewPage instance is ready. abstract void
onCancelled()
Called by the factory if creation of a new page was cancelled. -
-
Method Detail
-
onNewPageReady
abstract void onNewPageReady(@NonNull() 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.
-
onCancelled
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.
-
-
-
-