When the SDK wants to take over the User Interface, it needs a reference to your application's currently opened activity (it will initiate its UI on top of that activity). To pass that reference, implement as follows the ESignLiveRootActivityProvider interface on your project's root activity:

To enable the SDK to connect with OneSpan Sign's server, the server's address must be configured on the SDK (to make the SDK point to the desired instance). Configure the server's address by calling the following method as soon as possible:

ESignLive.getInstance().setServerAddress(“SERVER_ADDRESS”);

We recommend that you set the server's address within the onCreate() method of the Application sub-class.

Optional: To receive certain events and callbacks from the SDK, implement the following listeners of your choice:

These lines are required for the libraries used by the Android SDK. Ensure that there is a compile project (':esl-sdk') line in the dependencies block. If :esl-sdk is not marked as compile, replace the old value with compile project (':esl-sdk').

At the bottom of build.gradle (i.e., at the root level), add the following lines: