public class

DocumentSharingDialog

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

Class Overview

Dialog with document sharing options.

See Also

Summary

Nested Classes
interface DocumentSharingDialog.SharingDialogListener Listener for sharing dialog. 
[Expand]
Inherited Constants
From class androidx.fragment.app.DialogFragment
Public Constructors
DocumentSharingDialog()
Public Methods
static void hide(FragmentManager manager)
Hides existing DocumentSharingDialog.
static boolean isVisible(FragmentManager manager)
Test if document sharing dialog is visible.
Dialog onCreateDialog(Bundle savedInstanceState)
void onStart()
static void restore(FragmentManager manager, DocumentSharingDialog.SharingDialogListener listener)
Restores DocumentSharingDialog.SharingDialogListener in existing instance of the dialog if exists.
static void show(BaseDocumentSharingDialog dialog, FragmentManager manager, DocumentSharingDialogConfiguration configuration, DocumentSharingDialog.SharingDialogListener listener)
Shows the passed dialog or DocumentSharingDialog.
static void show(FragmentManager manager, DocumentSharingDialogConfiguration configuration, DocumentSharingDialog.SharingDialogListener listener)
[Expand]
Inherited Methods
From class com.pspdfkit.ui.dialog.BaseDocumentSharingDialog
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 DocumentSharingDialog ()

Public Methods

public static void hide (FragmentManager manager)

Hides existing DocumentSharingDialog.

Parameters
manager The FragmentManager to use.

public static boolean isVisible (FragmentManager manager)

Test if document sharing 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, DocumentSharingDialog.SharingDialogListener listener)

Restores DocumentSharingDialog.SharingDialogListener in existing instance of the dialog if exists.

Parameters
manager The FragmentManager to use.
listener Dialog listener.

public static void show (BaseDocumentSharingDialog dialog, FragmentManager manager, DocumentSharingDialogConfiguration configuration, DocumentSharingDialog.SharingDialogListener listener)

Shows the passed dialog or DocumentSharingDialog. Will always attempt to obtain an existing instance of the dialog.

Parameters
dialog The BaseDocumentSharingDialog to show.
manager The FragmentManager to use.
configuration Dialog configuration object.
listener Dialog listener.

public static void show (FragmentManager manager, DocumentSharingDialogConfiguration configuration, DocumentSharingDialog.SharingDialogListener listener)

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

Parameters
manager The FragmentManager to use.
configuration Dialog configuration object.
listener Dialog listener.