restore

fun restore(fragmentManager: FragmentManager, listener: OnSignaturePickedListener?, signatureStorage: SignatureStorage? = null)

Restores any previously shown ElectronicSignatureFragment by re-attaching a OnSignaturePickedListener. Use this inside your activity's com.pspdfkit.ui.PdfActivity.onCreate method to reattach any listener and signature storage if necessary (for example after a configuration change). If no fragment was shown, calling this method will be a no-op.

Parameters

fragmentManager

The current activity's fragment manager.

listener

A listener for receiving the user's selection.

signatureStorage

Signature storage to be used for saving selected signatures, or null to use the default one.