public static interface

InteractiveSigner.LoadingFeedbackListener

com.pspdfkit.signatures.signers.InteractiveSigner.LoadingFeedbackListener

Class Overview

Callback for notifying the user of important events that could happen during private key loading.

Summary

Nested Classes
enum InteractiveSigner.LoadingFeedbackListener.InteractionRequiredEvent Possible user interaction events that can be emitted via onInteractionRequired(InteractiveSigner.LoadingFeedbackListener.InteractionRequiredEvent)
Public Methods
abstract void onError(String reason, Throwable exception)
Called when an error happened while loading the certificate.
abstract void onInteractionRequired(InteractiveSigner.LoadingFeedbackListener.InteractionRequiredEvent event)
Called by the signer whenever interaction with the user is required (for example when loading the private key failed, or a password is required).
abstract void onSuccess()
Called when the certificate was successfully loaded.

Public Methods

public abstract void onError (String reason, Throwable exception)

Called when an error happened while loading the certificate.

Parameters
reason A human readable reason describing the error reason.
exception An exception with more details on the error, or null.

public abstract void onInteractionRequired (InteractiveSigner.LoadingFeedbackListener.InteractionRequiredEvent event)

Called by the signer whenever interaction with the user is required (for example when loading the private key failed, or a password is required).

Parameters
event Type of event that happened.

public abstract void onSuccess ()

Called when the certificate was successfully loaded.