destroyRTCEngine static method

FutureOr<void> destroyRTCEngine()

@detail api @author wangzhanqiang @brief Destroy the engine instance created by createRTCEngine:delegate:{@link #ByteRTCEngine#createRTCEngine:delegate}, and release all related resources. @note - Call this API after all business scenarios related to the engine instance are destroyed. - When the API is called, RTC SDK destroys all memory associated with the engine instance and stops any interaction with the media server. - Calling this API will start the SDK exit logic. The engine thread is held until the exit logic is complete. The engine thread is retained until the exit logic is complete. Therefore, do not call this API directly in the callback thread, or it will cause a deadlock. This function takes a long time to execute, so it's not recommended to call this API in the main thread, or the main thread may be blocked. - You can enable ARC for Objective-C, to automatically trigger the destruction logic when the dealloc method is called.

Implementation

static FutureOr<void> destroyRTCEngine() async {
  return await NativeClassUtils.nativeStaticCall(
    _$namespace,
    'destroyRTCEngine',
    [],
    'com.volcengine.rtc.hybrid_runtime',
  );
}