initializeSDK static method

Future<bool?> initializeSDK({
  1. required String licenseKey,
  2. required String iOSContainerID,
  3. String? storageFolderName = "Mirrorfly",
  4. bool chatHistoryEnable = false,
  5. bool enableMobileNumberLogin = true,
  6. bool enableDebugLog = false,
})

Used as a initializeSDK class for Mirrorfly

  • @property licenseKey provides the License Key @property iOSContainerID provides the App Group of the iOS Project @property chatHistoryEnable set true to enable chat History. @property storageFolderName provides the Local Storage Folder Name dafault is "Mirrorfly" @property enableDebugLog 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);
}