Migration 1.x to 2.x version
This document is intended to highlight the main changes from the previous 1.x version and the 2.0 version. For more information, please refer to the javadoc included in the SDK distribution file.
How to get notified about events
Starting 2.0 version, the MobbSignProgressUpdater listener no longer exist and now there are individual callbacks that you can define to listen to each event. For example, if you want to implement some action when the user is signed by a user, you can do it this way now:
mobbSignView.setOnDocumentSignedListener(new MobbSignDocumentSignedListener()
{
@Override
public void onDocumentSigned(byte[] document, Bitmap signatureBitmap) {
// The document has been successfully signed.
}
});
View customization
The customization properties available are now defined in the MobbSignCustomizationProperties class. To customize your view, configure an Android Bundle with your customization values and then use it to initialize the MobbSignView:
Bundle customizationBundle = new Bundle();
// Set all your desired customization values here
mobbSignView = new MobbSignView(this, customizationBundle);
MobbID integration
The new version comes with a MobbID extension that allows the app to verify the user signature before actually signing the document. Please refer to the documentation for an explanation of how to implement this functionality.