public final class

DocumentPrintDialog

extends BaseDocumentPrintDialog
java.lang.Object
   ↳ androidx.fragment.app.Fragment
     ↳ androidx.fragment.app.DialogFragment
       ↳ androidx.appcompat.app.AppCompatDialogFragment
         ↳ com.pspdfkit.ui.dialog.BaseDocumentPrintDialog
           ↳ com.pspdfkit.ui.dialog.DocumentPrintDialog

Class Overview

Dialog with document print options.

See Also

Summary

Nested Classes
interface DocumentPrintDialog.PrintDialogListener Listener for the printing dialog. 
[Expand]
Inherited Constants
From class androidx.fragment.app.DialogFragment
Public Constructors
DocumentPrintDialog()
Public Methods
static void hide(FragmentManager manager)
Hides existing print dialog.
static boolean isVisible(FragmentManager manager)
Test if document print dialog is visible.
Dialog onCreateDialog(Bundle savedInstanceState)
void onStart()
static void restore(FragmentManager manager, DocumentPrintDialog.PrintDialogListener listener)
Restores DocumentPrintDialog.PrintDialogListener in existing instance of the dialog.
static void show(Context context, FragmentManager manager, int currentPage, int maxPages, String documentName, DocumentPrintDialog.PrintDialogListener listener)
Shows the DocumentPrintDialog.
static void show(BaseDocumentPrintDialog dialog, Context context, FragmentManager manager, int currentPage, int maxPages, String documentName, DocumentPrintDialog.PrintDialogListener listener)
Shows the DocumentPrintDialog.
[Expand]
Inherited Methods
From class com.pspdfkit.ui.dialog.BaseDocumentPrintDialog
From class androidx.appcompat.app.AppCompatDialogFragment
From class androidx.fragment.app.DialogFragment
From class androidx.fragment.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.DialogInterface.OnCancelListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.view.View.OnCreateContextMenuListener
From interface androidx.lifecycle.LifecycleOwner
From interface androidx.lifecycle.ViewModelStoreOwner

Public Constructors

public DocumentPrintDialog ()

Public Methods

public static void hide (FragmentManager manager)

Hides existing print dialog.

Parameters
manager The FragmentManager to use.

public static boolean isVisible (FragmentManager manager)

Test if document print dialog is visible.

Parameters
manager The FragmentManager to use.
Returns
  • true if dialog is currently visible.

public Dialog onCreateDialog (Bundle savedInstanceState)

public void onStart ()

public static void restore (FragmentManager manager, DocumentPrintDialog.PrintDialogListener listener)

Restores DocumentPrintDialog.PrintDialogListener in existing instance of the dialog.

Parameters
manager The FragmentManager to use.
listener Dialog listener.

public static void show (Context context, FragmentManager manager, int currentPage, int maxPages, String documentName, DocumentPrintDialog.PrintDialogListener listener)

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.

public static void show (BaseDocumentPrintDialog dialog, Context context, FragmentManager manager, int currentPage, int maxPages, String documentName, DocumentPrintDialog.PrintDialogListener listener)

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

Parameters
dialog The BaseDocumentPrintDialog to show.
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.