show

open fun show(@NonNull fragmentManager: FragmentManager, @Nullable documentPageSize: Size, @NonNull callback: NewPageDialog.Callback)

Shows the dialog to the user.

Parameters

fragmentManager

Fragment manager for performing necessary fragment transactions.

documentPageSize

A custom size representative for the current document. This size option will be called "document size" inside the page size dropdown list, and will be selected by default. The caller needs to define this size, or pass in null to deactivate that option.

callback

A Callback that will be notified of confirmation or dismissal of the dialog.


open fun show(@NonNull fragmentManager: FragmentManager, @Nullable documentPageSize: Size, @NonNull pageTemplates: List<PageTemplate>, @NonNull callback: NewPageDialog.Callback)

Shows the dialog to the user.

Parameters

fragmentManager

Fragment manager for performing necessary fragment transactions.

documentPageSize

A custom size representative for the current document. This size option will be called "document size" inside the page size dropdown list, and will be selected by default. The caller needs to define this size, or pass in null to deactivate that option.

pageTemplates

A list of PageTemplates that the user can select from in addition to the default patterns.

callback

A Callback that will be notified of confirmation or dismissal of the dialog.


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.

Parameters

fragmentManager

Fragment manager for performing necessary fragment transactions.

documentPageSize

A custom size representative for the current document. This size option will be called "document size" inside the page size dropdown list, and will be selected by default. The caller needs to define this size, or pass in null to deactivate that option.

pageTemplates

A list of PageTemplates that the user can select from in addition to the default patterns.

showPageTemplatesLast

Set to true to display your PageTemplates after page pattern options. Set to false by default.

callback

A Callback that will be notified of confirmation or dismissal of the dialog.