Add a watermark to the signature
How to add text
In order to add the text on the signature, you must call the method addTextToSign
once the signature has been acquired. For this porpuse, you should use the MobbSignView setOnSignatureAcquiredListener
listener as below:
mobbSignView.setOnSignatureAcquiredListener(new MobbSignView.OnSignatureAcquiredListener() {
@Override
public void onSignatureAcquired(MobbSignView mobbSignView) {
Log.d(LOG_TAG, "onSignatureAcquired()");
mobbSignView.addTextToSign("John Doe is the signer");
}
});
You can customize the text to add to the signature using these properties from the MobbSign Configuration Bundle:
Key name | Type | Default value | Description |
---|---|---|---|
TEXTSTAMP_SIZE_MIN | int | 8 | Minimum size for the text stamped in the signature visual representation. |
TEXTSTAMP_SIZE_MAX | int | 10 | Maximum size for the text stamped in the signature visual representation. |
TEXTSTAMP_LINES_MAX | int | 4 | Maximum number of lines where to stamp the text in the signature visual representation. |
TEXTSTAMP_CHARACTERS_MAX | int | 100 | Maximum characters of the text to stamp in the signature visual representation. |