Breadcrumbs

signoAPI Android – STSignoViewerCreator class

The STSignoViewerCreator class is responsible for creating an STSignoViewer instance. The class is part of libSignoPDFSigner.

Java
public class STSignoViewerCreator

createSignoViewer method

This method can be used to create exactly one instance of the STSignoViewer class. The generated STSignoViewer instance can be used as a Fragment instance.

Java
public static STSignoViewer createSignoViewer(Context context) throws STSignoViewerException;

Parameter

Description

Context context

The context of an Activity class.

Return value

Description

STSignoViewer

The instance of the STSignoViewer class as a fragment instance.

Exception

Description

STSignoViewerException

Is thrown if an error occurs when the STSignoViewer instance is generated.

Usage:

Java
try {
   STSignoViewer signoViewer = STSignoViewerCreator.createSignoViewer(context);
} catch {
   //error handling
}

newInstance method

In contrast to the createSignoViewer method, this method can be used to create a new instance of the STSignoViewer class every time it is called. The generated STSignoViewer instance can be used as a Fragment instance.

Java
public static STSignoViewer newInstance(Context context) throws STSignoViewerException;

Parameter

Description

Context context

The context of an Activity class.

Return value

Description

STSignoViewer

The instance of the STSignoViewer class as a fragment instance.

Exception

Description

STSignoViewerException

Is thrown if an error occurs when the STSignoViewer instance is generated.

Usage:

Java
try {
   STSignoViewer signoViewer = STSignoViewerCreator.newInstance(context);
} catch {
   //error handling
}

releaseSignoViewer method

This method can be used to release the generated instance of the STSignoViewer class.

Java
public static void releaseSignoViewer();

Parameter

Description

-

-

Return value

Description

-

-

Usage:

Java
STSignoViewerCreator.releaseSignoViewer();