New Page Dialog
Dialog for choosing properties for a newly created PDF page. A call to show will prepare and show the dialog, creating it if necessary. When calling this method after a configuration change, it will restore and use the previously added dialog.
Constructors
Link copied to clipboard
constructor()
Primary constructor of the NewPageDialog.
Types
Properties
Link copied to clipboard
val ARG_DOCUMENT_PAGE_SIZE: String = "com.pspdfkit.ui.dialog.page.NewPageDialog.ARG_DOCUMENT_PAGE_SIZE"
Name of the fragment argument carrying the document page Size.
Link copied to clipboard
Fragment transaction tag used by this dialog.
Functions
Link copied to clipboard
Link copied to clipboard
Hides the dialog if visible.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun restore(@NonNull fragmentManager: FragmentManager, @NonNull callback: NewPageDialog.Callback): Boolean
open fun restore(@NonNull fragmentManager: FragmentManager, @NonNull pageTemplates: List<PageTemplate>, @NonNull callback: NewPageDialog.Callback): Boolean
open fun restore(@NonNull fragmentManager: FragmentManager, @NonNull pageTemplates: List<PageTemplate>, showPageTemplatesLast: Boolean, @NonNull callback: NewPageDialog.Callback): Boolean
Restore existing dialog.
Link copied to clipboard
Link copied to clipboard
open fun show(@NonNull fragmentManager: FragmentManager, @Nullable documentPageSize: Size, @NonNull callback: NewPageDialog.Callback)
open fun show(@NonNull fragmentManager: FragmentManager, @Nullable documentPageSize: Size, @NonNull pageTemplates: List<PageTemplate>, @NonNull callback: NewPageDialog.Callback)
open fun show(@NonNull fragmentManager: FragmentManager, @Nullable documentPageSize: Size, @NonNull pageTemplates: List<PageTemplate>, showPageTemplatesLast: Boolean, @NonNull callback: NewPageDialog.Callback)
Shows the dialog to the user.