initSDK method

  1. @override
Future<V2TimValueCallback<bool>> initSDK({
  1. required int sdkAppID,
  2. required int loglevel,
  3. String? listenerUuid,
  4. required int uiPlatform,
  5. bool? showImLog,
  6. List<V2TimPlugins>? plugins,
  7. V2TimSDKListener? listener,
})
override

初始化SDK

参数

@required int sdkAppID	应用 ID,必填项,可以在控制台中获取
@required int loglevel	配置信息
@required [InitListener] listener	SDK的回调

返回

true:成功;
false:失败

Implementation

@override
Future<V2TimValueCallback<bool>> initSDK({
  required int sdkAppID,
  required int loglevel,
  String? listenerUuid,
  required int uiPlatform,
  bool? showImLog,
  List<V2TimPlugins>? plugins,
  V2TimSDKListener? listener,
}) async {
  if (context['tencent_cloud_im_csig_flutter_for_web_25F_cy'] == null) {
    context['tencent_cloud_im_csig_flutter_for_web_25F_cy'] = "flutter_web";
  }
  return _v2timManager.initSDK(sdkAppID: sdkAppID, listener: listener);
}