setNewPageFactory

Sets a NewPageFactory that will be used by the document editor. The factory will be called every time the user wants to add a new page to the edited document. Setting it to null will tell the document editor to use the default factory (which is using a page creation dialog).

Note: When setting a factory this must be done each time the activity is recreated, since it won't be retained.

Parameters

newPageFactory

Factory that will return instances for the document editor.