uninit method
Implementation
Future<void> uninit() async {
if (!_isInit) {
ZegoLoggerService.logInfo(
'service had not init, not need to un-init',
tag: 'call',
subTag: 'call invitation service(${identityHashCode(this)})',
);
return;
}
ZegoLoggerService.logInfo(
'service un-init',
tag: 'call',
subTag: 'call invitation service(${identityHashCode(this)})',
);
_isInit = false;
_unregisterOfflineCallIsolateNameServer();
ZegoUIKit()
.adapterService()
.unregisterMessageHandler(_onAppLifecycleStateChanged);
_notificationManager?.uninit();
await _uninitCallKit();
if (Platform.isIOS) {
_uninitIOSCallkitService();
}
ZegoLoggerService.logInfo(
'logout signaling account',
tag: 'call',
subTag: 'call invitation service(${identityHashCode(this)})',
);
await ZegoUIKit().getSignalingPlugin().logout();
await _uninitContext();
}