What are the configuration settings for the GC Android SDK?

What are the configuration settings for the GC Android SDK?

Clearing local data

Use the following method to delete any local data with respect to the widgetId provided that has been saved inside the SDK, such as databases and files: 

Kotlin

  1. ZohoGC.clearData(context,widgetId,object : ZDChatCallback.ZDClearDataCallback {
            override fun onSuccess() {}
            override fun onFailed(exception: Exception) {}
        })

Java

  1. ZohoGC.clearData(context,widgetId,new ZDChatCallback.ZDClearDataCallback() {
        @Override
        public void onSuccess() {
        }
        @Override
        public void onFailed(Exception exception) {

        }
    }); 


SDK logging

By default, logs are disabled for the SDK. To get the debug logs printed in logcat, enable the logs by the following method:

Kotlin

  1. ZohoGC.enableLog(true) 

Java

  1. ZohoGC.enableLog(true);