initSDK method
Future<V2TimValueCallback<bool> >
initSDK({
- required int sdkAppID,
- required LogLevelEnum loglevel,
- required V2TimSDKListener listener,
- bool? showImLog = false,
- List<
V2TimPlugins> ? plugins,
Implementation
Future<V2TimValueCallback<bool>> initSDK({
required int sdkAppID,
required LogLevelEnum loglevel,
required V2TimSDKListener listener,
bool? showImLog = false,
List<V2TimPlugins>? plugins,
}) {
int platform = _getUiPlatform(StackTrace.current.toString());
final String uuid = Uuid().v4();
this.initSDKListenerList[uuid] = listener;
return ImFlutterPlatform.instance.initSDK(
sdkAppID: sdkAppID,
loglevel: loglevel.index,
listenerUuid: uuid,
listener: listener,
uiPlatform: platform,
showImLog: showImLog,
plugins: plugins ?? [],
);
}