init static method

  1. @Deprecated('Instead of use Mirrorfly.initializeSDK()')
dynamic init({
  1. required String baseUrl,
  2. required String licenseKey,
  3. required String iOSContainerID,
  4. String? storageFolderName,
  5. bool enableMobileNumberLogin = true,
  6. bool isTrialLicenceKey = true,
  7. bool chatHistoryEnable = false,
  8. bool enableDebugLog = false,
})

Used as a initChat class for Mirrorfly

  • @param baseUrl provides the base url for making api calls
  • @param licenseKey provides the License Key @param iOSContainerID provides the App Group of the iOS Project @param chatHistoryEnable set true to enable chat History. @param isTrialLicenceKey to provide trial/live register and contact sync @param storageFolderName provides the Local Storage Folder Name @param enableDebugLog provides the Debug Log.

Implementation

@Deprecated('Instead of use Mirrorfly.initializeSDK()')
static init(
    {required String baseUrl,
    required String licenseKey,
    required String iOSContainerID,
    String? storageFolderName,
    bool enableMobileNumberLogin = true,
    bool isTrialLicenceKey = true,
    bool chatHistoryEnable = false,
    // int? maximumRecentChatPin,
    // GroupConfig? groupConfig,
    // String? ivKey,
    bool enableDebugLog = false}) {
  var builder = ChatBuilder(
      domainBaseUrl: baseUrl,
      iOSContainerID: iOSContainerID,
      licenseKey: licenseKey,
      storageFolderName: storageFolderName,
      enableMobileNumberLogin: enableMobileNumberLogin,
      isTrialLicenceKey: isTrialLicenceKey,
      chatHistoryEnable: chatHistoryEnable,
      // maximumRecentChatPin: maximumRecentChatPin,
      // groupConfig: groupConfig,
      // ivKey: ivKey,
      enableDebugLog: enableDebugLog);
  isTrialLicence = isTrialLicenceKey;
  isChatHistoryEnabled = chatHistoryEnable;
  FlyChatFlutterPlatform.instance.init(builder);
}