STSignatureCaptureConfig class
The STSignatureCaptureConfig class is a data object that contains the configuration properties for the signature dialog. For further information, see also the STSignoViewerNotifier.willStartSigning() or STSignatureCapture.configureDialog() methods. The class is part of libSignoPDFSigner as well as part of libSignoSignatureCapture.
|
Property |
Description |
|
|
displayText* string |
Text displayed in the signature dialog. |
|
|
Typeface font* |
Font and style of the text in the signature dialog |
|
|
int fontSize* |
Font size of the text in the signature dialog (in dp) |
|
|
int textColor* |
Colour of the text in the signature dialog |
|
|
Rect position* |
Position specification of the text in the signature dialog |
|
|
Configuration object for text display in the signature dialog |
||
|
int signatureColor |
Pen colour of the signature |
|
|
int lineWidth |
Pen width of the signature in dp (1–20) |
|
|
int marginBottom |
Distance of the bottom of the signature dialogue from the bottom edge of the screen |
|
|
boolean enablePressureDependentCapturing |
true |
The signature is represented with pressure levels in the signature dialog. |
|
false |
The signature is not represented with pressure levels in the signature dialog. |
|
|
boolean enableFullScreenCapture |
true |
The signature dialog is displayed in full screen mode. |
|
false |
The signature dialog is displayed in standard mode. |
|
|
boolean enableTouchSignature |
true |
Activates signature capture with a finger in the signature dialog. |
|
false |
Deactivates signature capture with a finger in the signature dialog. |
|
|
boolean enablePencilSignature |
true |
Activates signature capture with a pen in the signature dialog. |
|
false |
Deactivates signature capture with a pen in the signature dialog. |
|
|
boolean enableBiometricDataCapturing |
true |
Biometric data is captured. |
|
false |
No biometric data is captured. |
|
dp = density-independent pixels
The properties marked with an asterisk (*) are obsolete and are only supported for compatibility reasons. Use the STCaptureTextConfig class instead.
STCaptureTextConfig class
The STCaptureTextConfig class is a data object and describes the central configuration of text display in the signature dialog, including text content, font, font size, colour and other display-related properties.
|
Property |
Description |
|
String displayText |
Text displayed in the signature dialog. |
|
Typeface font |
Font and style of the text in the signature dialog. |
|
int fontSize |
Font size of the text in the signature dialog (in dp). |
|
int textColor |
Colour of the text in the signature dialog. |
|
int backgroundColor |
Background colour of the text area in the signature dialog. |
|
int marginStart, int marginTop, int marginEnd, int marginBottom |
Outer spacing of the text area in the signature dialog for flexible placement. |
|
int paddingStart, int paddingTop, int paddingEnd, int paddingBottom |
Inner spacing of the text area in the signature dialog. |
|
CaptureGravity gravity |
Positioning of the text area within the signature dialog using predefined alignment values. |
The enumeration CaptureGravity is defined as follows:
public enum CaptureGravity {
TOP_START,
TOP_CENTER,
TOP_END,
CENTER_START,
CENTER,
CENTER_END,
BOTTOM_START,
BOTTOM_CENTER,
BOTTOM_END
}