initializeSDK static method
Used as a initializeSDK class for Mirrorfly
- @property
licenseKey
provides the License Key @propertyiOSContainerID
provides the App Group of the iOS Project @propertychatHistoryEnable
set true to enable chat History. @propertystorageFolderName
provides the Local Storage Folder Name dafault is "Mirrorfly" @propertyenableDebugLog
provides the Debug Log.
Implementation
static Future<bool?> initializeSDK(
{required String licenseKey,
required String iOSContainerID,
String? storageFolderName = "Mirrorfly",
bool chatHistoryEnable = false,
bool enableMobileNumberLogin = true,
bool enableDebugLog = false}) {
var builder = InitializeSDKBuilder(
iOSContainerID: iOSContainerID,
licenseKey: licenseKey,
storageFolderName: storageFolderName,
chatHistoryEnable: chatHistoryEnable,
enableMobileNumberLogin: enableMobileNumberLogin,
enableDebugLog: enableDebugLog);
isChatHistoryEnabled = chatHistoryEnable;
return FlyChatFlutterPlatform.instance.initializeSDK(builder);
}