SignatureCreationInterceptor

Steps into the built-in electronic signature flow at its two decision points — before the signature dialog is shown, and before a created signature is added to the document — without replacing the signature UI itself.

Set it on com.pspdfkit.ui.PdfFragment.signatureCreationInterceptor. Each method receives a request that has to be resolved exactly once, immediately or later after showing UI of your own. Nothing happens until it is resolved. Both default implementations proceed unchanged.

A request is tied to the flow that issued it. Resolving it after the hosting activity has saved its state or been recreated, or after a newer request has replaced it, is ignored with a warning; the signing flow is then simply abandoned.

Functions

Link copied to clipboard

Called before the signature dialog is shown, both from the annotation toolbar and when a signature form field is tapped. Resolve with SignatureCreationRequest.proceed, optionally with adjusted ElectronicSignatureOptions, or SignatureCreationRequest.cancel.

Link copied to clipboard

Called once a signature has been created or picked, before it is added to the document. Resolve with SignaturePlacementRequest.proceed, optionally with another page and bounding box, or SignaturePlacementRequest.cancel.