Customisation
Messages to the user
Since version 3.6.0, the SDK can show the user relevant messages during the signing process, in a long-duration Toast:
- The signature drawn is shorter than the minimum length.
- The license could not be verified.
- The location of the device could not be obtained.
| Property | Type | Default | Description |
|---|---|---|---|
SHOW_RELEVANT_MESSAGES | boolean | true | Shows the messages to the user. |
Disable it if you prefer to inform the user from your own interface, using the onErrorOccurred events.
Texts of the interface
Override these string resources in your app (res/values/strings.xml, and the equivalent folder for each language) to change the texts of the viewer:
res/values/strings.xml
<string name="mobbsign_sign">Sign</string>
<string name="mobbsign_back">Back</string>
<string name="mobbsign_save">Save</string>
<string name="mobbsign_confirm">Confirm</string>
<string name="mobbsign_delete">Delete</string>
<string name="mobbsign_send">Send</string>
<string name="mobbsign_finalize">Finalize</string>
<string name="mobbsign_zoom_in">Zoom In</string>
<string name="mobbsign_zoom_out">Zoom Out</string>
<string name="mobbsign_previous">Previous</string>
<string name="mobbsign_next">Next</string>
Your own interface
To replace the toolbars with your own controls, trigger the actions with the methods described in Signing process. The customisation bundle accepts more properties, such as the visibility and colours of the toolbars; the Javadoc included in the distribution lists them all.