initSDK method
Future<V2TimValueCallback<bool> >
initSDK({
- required int sdkAppID,
- required LogLevelEnum loglevel,
- required V2TimSDKListener listener,
- bool? showImLog = false,
Implementation
Future<V2TimValueCallback<bool>> initSDK({
required int sdkAppID,
required LogLevelEnum loglevel,
required V2TimSDKListener listener,
bool? showImLog = false,
}) {
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,
);
}