init static method
dynamic
init({})
Used as a initChat class for Mirrorfly
- @property url provides the base url for making api calls
- @property licenseKey provides the License Key @property iOSContainerID provides the App Group of the iOS Project @property isTrialLicenceKey to provide trial/live register and contact sync @property storageFolderName provides the Local Storage Folder Name @property enableDebugLog provides the Debug Log.
Implementation
static init(
{required String baseUrl,
required String licenseKey,
required String iOSContainerID,
String? storageFolderName,
bool enableMobileNumberLogin = true,
bool isTrialLicenceKey = true,
// int? maximumRecentChatPin,
// GroupConfig? groupConfig,
// String? ivKey,
bool enableDebugLog = false}) {
var builder = ChatBuilder(
domainBaseUrl: baseUrl,
iOSContainerID: iOSContainerID,
licenseKey: licenseKey,
storageFolderName: storageFolderName,
enableMobileNumberLogin: enableMobileNumberLogin,
isTrialLicenceKey: isTrialLicenceKey,
// maximumRecentChatPin: maximumRecentChatPin,
// groupConfig: groupConfig,
// ivKey: ivKey,
enableDebugLog: enableDebugLog);
isTrialLicence=isTrialLicenceKey;
FlyChatFlutterPlatform.instance.init(builder);
}