public class

SignatureSignerDialog

extends DialogFragment
java.lang.Object
   ↳ androidx.fragment.app.Fragment
     ↳ androidx.fragment.app.DialogFragment
       ↳ com.pspdfkit.ui.signatures.SignatureSignerDialog

Class Overview

Dialog for signing a single SignatureFormField using a given Signer. To show the dialog use the static show(FragmentManager, Options, DocumentSigningListener) method.

Summary

Nested Classes
class SignatureSignerDialog.Options Collection of all the parameters the SignatureSignerDialog requires. 
[Expand]
Inherited Constants
From class androidx.fragment.app.DialogFragment
Public Constructors
SignatureSignerDialog()
Non-argument constructor used by the Android framework.
Public Methods
void onCreate(Bundle savedInstanceState)
Dialog onCreateDialog(Bundle savedInstanceState)
void onDestroy()
void onDismiss(DialogInterface dialog)
void onStart()
void onStop()
static void restore(FragmentManager fragmentManager, PdfDocument document)
Restores the dialog if there currently is a signing in progress.
static void setListener(FragmentManager fragmentManager, DocumentSigningListener listener)
Sets the DocumentSigningListener on the currently displayed SignatureSignerDialog.
static void show(FragmentManager fragmentManager, SignatureSignerDialog.Options options, DocumentSigningListener listener)
Creates the dialog for signing the signature formField of the document.
[Expand]
Inherited Methods
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 SignatureSignerDialog ()

Non-argument constructor used by the Android framework. To create an instance of this dialog use show(FragmentManager, Options, DocumentSigningListener) instead.

Public Methods

public void onCreate (Bundle savedInstanceState)

public Dialog onCreateDialog (Bundle savedInstanceState)

public void onDestroy ()

public void onDismiss (DialogInterface dialog)

public void onStart ()

public void onStop ()

public static void restore (FragmentManager fragmentManager, PdfDocument document)

Restores the dialog if there currently is a signing in progress.

Parameters
fragmentManager Fragment manager of the current activity for attaching and showing the dialog.
document The PdfDocument instance that is being signed.

public static void setListener (FragmentManager fragmentManager, DocumentSigningListener listener)

Sets the DocumentSigningListener on the currently displayed SignatureSignerDialog.

Parameters
fragmentManager Fragment manager of the current activity for attaching and showing the dialog.
listener A DocumentSigningListener for being notified of the signing success, or null.

public static void show (FragmentManager fragmentManager, SignatureSignerDialog.Options options, DocumentSigningListener listener)

Creates the dialog for signing the signature formField of the document.

Parameters
fragmentManager Fragment manager of the current activity for attaching and showing the dialog.
options The SignatureSignerDialog.Options to use for signing.
listener An optional DocumentSigningListener for being notified of the signing success, or null. If set make sure to restore it after a configuration change using the static setListener(FragmentManager, DocumentSigningListener) method.