restore

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

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