Initialization

In order to start using any of our SDK methods, the first thing you need to do is to initialize our SDK.

To initialize it, after loading the library in your web site you must execute the following method:

Configuration.Builder config = new Configuration.Builder("YOUR_APPKEY","YOUR_SENDER_ID")
   .setLogDebug(LogLevel.DEBUG) 
   .setDisabledPushService(true) //in case you do not use our notification service on your app
   .build();

Indigitall.init(config, new InitCallback(context){...})

Once the customer is linked, the customer's id can be requested as follows:

 Indigitall.getCustomer(this, object : CustomerCallback(this){
   override fun onSuccess(customer: Customer) {
     //do something
   }

   override fun onError(errorModel: ErrorModel?) {
     //log error
   });

And the customer's information about its fields as follows:

Indigitall.getCustomerInformation(context, null, object: CustomerFieldCallback(context){
   override fun onSuccess(customerField: ArrayList<CustomerField>) {
   		//do something
  }

  override fun onError(error: Error?) {
      //log error
  }
})