restore

open fun restore(@NonNull fragmentManager: FragmentManager, @NonNull callback: NewPageDialog.Callback): Boolean

Restore existing dialog.

Return

True when dialog has been restored, false otherwise.

Parameters

fragmentManager

Fragment manager for querying dialog fragment state.

callback

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


open fun restore(@NonNull fragmentManager: FragmentManager, @NonNull pageTemplates: List<PageTemplate>, @NonNull callback: NewPageDialog.Callback): Boolean

Restore existing dialog.

Return

True when dialog has been restored, false otherwise.

Parameters

fragmentManager

Fragment manager for querying dialog fragment state.

callback

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

pageTemplates

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


open fun restore(@NonNull fragmentManager: FragmentManager, @NonNull pageTemplates: List<PageTemplate>, showPageTemplatesLast: Boolean, @NonNull callback: NewPageDialog.Callback): Boolean

Restore existing dialog.

Return

True when dialog has been restored, false otherwise.

Parameters

fragmentManager

Fragment manager for querying dialog fragment state.

callback

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

pageTemplates

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

showPageTemplatesLast

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