unInitSDK method
反初始化 SDK
Implementation
Future<V2TimCallback> unInitSDK() async {
if (kIsWeb) {
await TencentCloudChatSdkPlatform.instance.removeAdvancedMsgListener();
await TencentCloudChatSdkPlatform.instance.removeConversationListener();
await TencentCloudChatSdkPlatform.instance.removeFriendListener();
await TencentCloudChatSdkPlatform.instance.removeGroupListener();
await TencentCloudChatSdkPlatform.instance.removeSimpleMsgListener();
await TencentCloudChatSdkPlatform.instance.removeSignalingListener();
return TencentCloudChatSdkPlatform.instance.unInitSDK();
}
v2TIMSDKListenerList.clear();
bool result = TIMManager.instance.unInitSDK();
return V2TimCallback.fromBool(result, '');
}