Package com.pspdfkit.ui.dialog
Class DocumentSharingDialog
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks
,android.content.DialogInterface.OnCancelListener
,android.content.DialogInterface.OnDismissListener
,android.view.View.OnCreateContextMenuListener
,androidx.activity.result.ActivityResultCaller
,androidx.lifecycle.HasDefaultViewModelProviderFactory
,androidx.lifecycle.LifecycleOwner
,androidx.lifecycle.ViewModelStoreOwner
,androidx.savedstate.SavedStateRegistryOwner
public class DocumentSharingDialog extends BaseDocumentSharingDialog
Dialog with document sharing options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
DocumentSharingDialog.SharingDialogListener
Listener for sharing dialog.
-
Constructor Summary
Constructors Constructor Description DocumentSharingDialog()
-
Method Summary
Modifier and Type Method Description static void
show(@NonNull() FragmentManager manager, @NonNull() DocumentSharingDialogConfiguration configuration, @Nullable() DocumentSharingDialog.SharingDialogListener listener)
Shows the DocumentSharingDialog. static void
show(@Nullable() BaseDocumentSharingDialog dialog, @NonNull() FragmentManager manager, @NonNull() DocumentSharingDialogConfiguration configuration, @Nullable() DocumentSharingDialog.SharingDialogListener listener)
Shows the passed dialog or DocumentSharingDialog. static void
restore(@NonNull() FragmentManager manager, @Nullable() DocumentSharingDialog.SharingDialogListener listener)
Restores SharingDialogListener in existing instance of the dialog if exists. static void
hide(@NonNull() FragmentManager manager)
Hides existing DocumentSharingDialog. static boolean
isVisible(@NonNull() FragmentManager manager)
Test if document sharing dialog is visible. Dialog
onCreateDialog(Bundle savedInstanceState)
void
onStart()
-
-
Method Detail
-
show
static void show(@NonNull() FragmentManager manager, @NonNull() DocumentSharingDialogConfiguration configuration, @Nullable() 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.
-
show
static void show(@Nullable() BaseDocumentSharingDialog dialog, @NonNull() FragmentManager manager, @NonNull() DocumentSharingDialogConfiguration configuration, @Nullable() 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.
-
restore
static void restore(@NonNull() FragmentManager manager, @Nullable() DocumentSharingDialog.SharingDialogListener listener)
Restores SharingDialogListener in existing instance of the dialog if exists.
- Parameters:
manager
- The FragmentManager to use.listener
- Dialog listener.
-
hide
static void hide(@NonNull() FragmentManager manager)
Hides existing DocumentSharingDialog.
- Parameters:
manager
- The FragmentManager to use.
-
isVisible
static boolean isVisible(@NonNull() FragmentManager manager)
Test if document sharing dialog is visible.
- Parameters:
manager
- The FragmentManager to use.- Returns:
true
if dialog is currently visible.
-
onCreateDialog
@NonNull() Dialog onCreateDialog(Bundle savedInstanceState)
-
onStart
void onStart()
-
-
-
-