init static method
void
init(
- String appId,
- String appKey,
- String domain, {
- bool responseExpectationEnabled = true,
- bool teamMemberInfoVisible = true,
- bool cameraCaptureEnabled = true,
- bool gallerySelectionEnabled = true,
- bool userEventsTrackingEnabled = true,
- String? stringsBundle,
- String? themeName,
- bool errorLogsEnabled = true,
Initialize Freshchat SDK with the necessary configuration
appId, appKey and domain can be found in Mobile SDK settings page of your Freshchat account.
Implementation
static void init(String appId, String appKey, String domain,
{bool responseExpectationEnabled = true,
bool teamMemberInfoVisible = true,
bool cameraCaptureEnabled = true,
bool gallerySelectionEnabled = true,
bool userEventsTrackingEnabled = true,
String? stringsBundle,
String? themeName,
bool errorLogsEnabled = true}) async {
await _channel.invokeMethod('init', <String, dynamic>{
'appId': appId,
'appKey': appKey,
'domain': domain,
'responseExpectationEnabled': responseExpectationEnabled,
'teamMemberInfoVisible': teamMemberInfoVisible,
'cameraCaptureEnabled': cameraCaptureEnabled,
'gallerySelectionEnabled': gallerySelectionEnabled,
'userEventsTrackingEnabled': userEventsTrackingEnabled,
'stringsBundle': stringsBundle,
'themeName': themeName,
'errorLogsEnabled': errorLogsEnabled
});
}