show

open fun show(@NonNull context: Context, @NonNull manager: FragmentManager, @IntRange(from = 0) currentPage: Int, @IntRange(from = 0) maxPages: Int, @NonNull documentName: String, @NonNull listener: DocumentPrintDialog.PrintDialogListener)

Shows the DocumentPrintDialog. Will always attempt to obtain an existing instance of the dialog.

Parameters

context

The context.

manager

The FragmentManager to use.

currentPage

Currently displayed page in the document.

maxPages

Document pages count.

documentName

Document name shown in dialog.

listener

Dialog listener.


open fun show(@Nullable dialog: BaseDocumentPrintDialog, @NonNull context: Context, @NonNull manager: FragmentManager, @IntRange(from = 0) currentPage: Int, @IntRange(from = 0) maxPages: Int, @NonNull documentName: String, @NonNull listener: DocumentPrintDialog.PrintDialogListener)

Shows the DocumentPrintDialog. Will always attempt to obtain an existing instance of the dialog.

Parameters

dialog
context

The context.

manager

The FragmentManager to use.

currentPage

Currently displayed page in the document.

maxPages

Document pages count.

documentName

Document name shown in dialog.

listener

Dialog listener.