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
- ZohoGC.clearData(context,widgetId,object : ZDChatCallback.ZDClearDataCallback {
override fun onSuccess() {}
override fun onFailed(exception: Exception) {}
})
Java
- 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