initializeSDK static method
Used as a initializeSDK class for Mirrorfly
- @property
licenseKeyprovides the License Key @propertyiOSContainerIDprovides the App Group of the iOS Project @propertychatHistoryEnableset true to enable chat History. @propertystorageFolderNameprovides the Local Storage Folder Name dafault is "Mirrorfly" @propertyenableDebugLogprovides 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);
}