ElectronicSignatureFragment

A dialog for adding a signature to a document by drawing, selecting an image, or typing. an electronic signature. The dialog also provides a list of stored signatures.

This class requires the Electronic Signatures feature to be enabled in your license.

To show the dialog, use show providing the fragment manager of the current activity, and a callback for receiving the user's selection.

To cryptographically sign a document with a certificate, please use the com.pspdfkit.signatures.SigningManager class from PSPDFKit's Digital Signatures component.

Check out signature guide for more general information about signatures.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Provides factory methods for showing and managing electronic signature fragments.

Functions

Link copied to clipboard
fun finish()

Dismiss fragment removing it from its owning activity.

Link copied to clipboard
open override fun onCreate(savedInstanceState: Bundle?)

Called when the fragment is created. Initializes signature options from arguments and restores any previously shown signature picker dialog.

Link copied to clipboard
open override fun onSaveInstanceState(outState: Bundle)

Saves the fragment state for later restoration across configuration changes.

Link copied to clipboard

Sets listener for picked signatures. Calling this method will replace any previously set listener. You may provide null to clear the listener.