MobbSign Additional Configuration
This page contains some additional configuration for MobbSign.
Signature configuration
Android
You can configure some details of the signature process:
mobbSignView.setStampImage(Bitmap);
Indicates an image to be drawn within the signature as a stamp.mobbSignView.addCustomField(String, String);
Indicates a key-value pair field to be written in the non-visible part of the signature field.mobbSignView.addSignedCustomField(String, String);
Indicates a key-value pair field to be written in the signed information of the signature field.mobbSignView.configureNextSignature(SignatureConfiguration);
With this method you can configure how signature will be drawn in the document. You can configure:positionRect
for specifying a position for the signature image.positionPage
for specifying a page for the signature image.strokeColor
for specifying the color of the signature.strokeWidth
for specifying the width of the of the signature stroke.signatureDate
for specifying the date of the signature.signerName
for specifying the name of the sign.duplicateSignatureImageList
for specifying the range of pages where sign will duplicate.
With this SignatureConfiguration object you can also setup a bundle with signature.type configuration property:
Key name | Type | Default value | Description |
---|---|---|---|
signature.type | SignatureType | SignatureType.ALL | With this property, the SDK can be setup in three modes:
|
mobbSignView.addTimestampServer(String, String, String);
Configure a timestamp server to be used for timestamping the signatures. You should configure the server URL along with the username and password, if needed. IMPORTANT: timestamp servers are paid services whose prices are not included in MobbSign licence.
iOS
You can configure some details of the signature process:
Indicates an image to be drawn within the signature as a stamp.
@property (nonatomic, strong) UIImage *stampImage;
Indicates a key-value pair field to be written in the non-visible part of the signature field.
- (void)addCustomField:(NSString*)key value:(NSString*)value;
Indicates a key-value pair field to be written in the signed information of the signature field.
- (void)addSignedCustomField:(NSString*)key value:(NSString*)value;
Windows Metro Apps
You can configure some details of the signature process:
public WriteableBitmap stampImage;
Indicates an image to be drawn within the signature as a stamp.
public void AddCustomField(String key, String value)
Indicates a key-value pair field to be written in the non-visible part of the signature field.
public void AddSignedCustomField(String key, String value)
Indicates a key-value pair field to be written in the signed information of the signature field.
public void ConfigureNextSignature(SignatureConfiguration config)
With this method you can configure how signature will be drawn in the document. You can configure:
positionRect
for specifying a position for the signature image.positionPage
for specifying a page for the signature image.strokeColor
for specifying the color of the signature.signatureDate
for specifying the date of the signature.signerName
for specifying the name of the signer.partyName
for specifying the name of the party.userId
for specifying the user id that mobbID uses to verify the sign before allowing him/her to sign the document.verification
, boolean that allows the verification of the signer before letting him/her sign the document.
Fingerprint configuration (Only Android supported)
MobbSign allows users to use their fingerprint as a method to sign document instead of handwritten signature, using fingerprint readers provided by Precise Biometrics.
You can configure the SDK to sign documents using your fingerprint.
Install Tactivo Manager from play store.
You must include the following permission:
<uses-permission android:name="com.precisebiometrics.android.mtk.manager.permission.BIOMETRIC_DATA" />
Set “SignatureType.FINGERPRINT” to the appropriate key in the MobbSign bundle configuration:
SignatureConfiguration signatureConfiguration = new SignatureConfiguration(); signatureConfiguration.getExtras().putSerializable(”signature.type”, SignatureType.FINGERPRINT);
Please check out the javadoc documentation to see all the possible customizable keys for fingerprint acquisition process.
Editable document fields edition (iOS only)
You can get and set editable fields values on editable documents:
(BOOL)setValue:(NSString*)value toField:(NSString*)fieldName;
Indicates the value to be set in the field with the given name.
(NSString*)getValueOfField:(NSString*)fieldName;
Returns the value of the field with the given name.
(NSDictionary*)getFields;
Returns a field name - field value pairs dictionary with all editable fields.
Document edition (iOS only)
(NSInteger)addNewPage;
Adds a new page at the end of the document.
(BOOL)addImageToPage:(MobbSignImageConfiguration *)imageConfiguration;
Adds an image in a page.