The STSignoViewerCreator class is responsible for creating an STSignoViewer instance. The class is part of libSignoPDFSigner.
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.
public static STSignoViewer createSignoViewer(Context context) throws STSignoViewerException;
|
Parameter |
Description |
|
Context context |
The context of an Activity class. |
|
Return value |
Description |
|
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:
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.
public static STSignoViewer newInstance(Context context) throws STSignoViewerException;
|
Parameter |
Description |
|
Context context |
The context of an Activity class. |
|
Return value |
Description |
|
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:
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.
public static void releaseSignoViewer();
|
Parameter |
Description |
|
- |
- |
|
Return value |
Description |
|
- |
- |
Usage:
STSignoViewerCreator.releaseSignoViewer();