init static method
Used as a initChat class for Mirrorfly
- @param
baseUrlprovides the base url for making api calls - @param
licenseKeyprovides the License Key @paramiOSContainerIDprovides the App Group of the iOS Project @paramchatHistoryEnableset true to enable chat History. @paramisTrialLicenceKeyto provide trial/live register and contact sync @paramstorageFolderNameprovides the Local Storage Folder Name @paramenableDebugLogprovides the Debug Log. @paramenableAndroidCallKitUIDetermines whether the Android CallKit UI is enabled. Defaults to true. Note: TheenableAndroidCallKitUIparameter inMirrorfly.initializeSDK()has been deprecated. To control the native ringtone and incoming call UI behavior, use:Mirrorfly.configureAndroidCallKit(enableRingtone: true,enableIncomingCallUI: true) If set to false, incoming calls will not trigger the call UI. Instead, you will receive an event through theonIncomingCallReceivedcallback.
Implementation
@Deprecated('Instead of use Mirrorfly.initializeSDK()')
static init(
{required String baseUrl,
required String licenseKey,
required String iOSContainerID,
String storageFolderName = "Mirrorfly Flutter",
bool enableMobileNumberLogin = true,
bool isTrialLicenceKey = true,
bool chatHistoryEnable = false,
// int? maximumRecentChatPin,
// GroupConfig? groupConfig,
// String? ivKey,
bool enableDebugLog = false,
bool? enableAndroidCallKitUI = true}) {
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,
enableAndroidCallKitUI: enableAndroidCallKitUI);
isTrialLicence = isTrialLicenceKey;
isChatHistoryEnabled = chatHistoryEnable;
FlyChatFlutterPlatform.instance.init(builder);
}