destroySubCloud method
- TRTCCloud cloud
Destroy the child TRTC instance
Not supported on:
- web
- MacOS
- Windows
Implementation
Future<void> destroySubCloud(TRTCCloud cloud) {
if (cloud == _trtcCloud) {
print("TRTCCloud : Singleton objects cannot be destroyed through this interface");
return Future<void>.value();
}
return _cloudChannel!.invokeMethod("destroySubCloud", {
"channelName" : cloud._cloudChannel!.name,
});
}