What are the configuration settings for the Guided Conversations SDK for Flutter Apps?  

What are the configuration settings for the Guided Conversations SDK for Flutter Apps?  

Clearing local data

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

  1. import 'package:zoho_gc_sdk/zoho_gc_sdk.dart' show ZohoGCSDK; 
    ZohoGCSDK.clearData(botId);  

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:

 

  1. import 'package:zoho_gc_sdk/zoho_gc_sdk.dart' show ZohoGCSDK; 
    ZohoGCSDK.enableLog(isLogEnabled); 

Set Locale

To set the locale, use the following method:

  1. import 'package:zoho_gc_sdk/zoho_gc_sdk.dart' show ZohoGCSDK; 
    Locale locale = new Locale('en', 'US');   //Sample 
    ZohoGCSDK.setLocale(locale); 

Specific handling for Android

HideLocationSearch

To hide or show the location search on the map, add the following method to your "MainActivity" file. By default, the location search will be visible. 

  1. import com.zoho.gc.zoho_gc_sdk.ZohoGcSdkPlugin
    ZohoGcSdkPlugin.hideLocationSearch(false);