restore

open fun restore(@NonNull fragmentManager: FragmentManager, @Nullable listener: OnSignaturePickedListener)

Restores any previously shown ElectronicSignatureFragment by re-attaching a . Use this inside your activity's onCreate method to reattach any listener 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.


open fun restore(@NonNull fragmentManager: FragmentManager, @Nullable listener: OnSignaturePickedListener, @Nullable signatureStorage: SignatureStorage)

Restores any previously shown ElectronicSignatureFragment by re-attaching a . Use this inside your activity's 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.