Breadcrumbs

signoAPI Android – STSignatureCaptureNotifier interface

The STSignatureCaptureNotifier interface contains methods that are called for specific events from the STSignatureCapture class. This interface must be implemented by a class. The instance of this class must be set with the STSignatureCapture setSignatureCaptureNotifier() method. The interface is part of libSignoPDFSigner as well as of libSignoSignatureCapture.

Java
public interface STSignatureCaptureNotifier

Usage:

Java
public class STSignatureCaptureNotifierImpl implements STSignatureCaptureNotifier {
   public void capturingCancelled() {
      // add your code here...
   }

   public void capturingConfirmed(int numberOfPoints) {
      // add your code here...
   }

   public void notifyLicenceStatus(STLicenceError licenceError) {
      // add your code here...
   }
}

capturingCancelled method

This method is called if the signature capture process has been aborted by the user.

Java
void capturingCancelled();

Parameter

Description

-

-

Return value

Description

-

-

Usage:

Java
void capturingCancelled() {
  // event handling
}

capturingConfirmed method

This method is called if the signature capture process has been confirmed by the user.

Java
void capturingConfirmed(int numberOfPoints);

Parameter

Description

int numberOfPoints

Number of points captured.

Return value

Description

-

-

Usage:

Java
void capturingConfirmed(int numberOfPoints) {
  // event handling
}

notifyLicenceStatus method

This method is called to share the result of the licence validation. An app can in this case ask the user to enter a licence key, for example.

Java
void notifyLicenceStatus(STLicenceError licenceError); 

Parameter

Description

STLicenceError licenceError

Instance of the STLicenceError class. See the licence error table in the STLicenceError class.

Return value

Description

-

-

Usage:

Java
void notifyLicenceStatus(STLicenceError licenceError) {
   if (licenceError != STLicenceError.NO_ERROR) {
      // software is not licensed, prompt dialog for entering a key
   }
}