destroy method

  1. @override
Future<void> destroy()
override

Destroy the RtcEngineKit object.

Note After destroying the RtcEngineKit object, the object will no longer be valid.

销毁 RtcEngineKit 对象。

Note RtcEngineKit 对象在销毁后将不再有效。

Implementation

@override
Future<void> destroy() {
  _engine = null;
  whiteboards.clear();

  _videoStreamManager = null;

  _annotationManager?.destroy();
  _annotationManager = null;

  _networkManager = null;
  _messageService = null;
  return _invokeMethod('destroy');
}