destroyScreenCaptureSource method

Future<void> destroyScreenCaptureSource(
  1. ZegoScreenCaptureSource source
)

Destroy the screen capture source instance

Available: since 3.1.0 Description: Destroy the ZegoScreenCaptureSource instance object. Use cases: When you no longer need to use the screen capture function, you can use this function to destroy the instance object created by the createScreenCaptureSource function When to call: When you need to the screen capture source object needs to be destroyed Restrictions: After destroy the instance, you need to release the ZegoScreenCaptureSource instance object you hold by yourself, and don’t call the function of this instance object after the destruction. Platform differences: Only supports Windows and macOS.

  • source The screen capture source instance to be destroyed.

Implementation

Future<void> destroyScreenCaptureSource(
    ZegoScreenCaptureSource source) async {
  return await ZegoExpressImpl.instance.destroyScreenCaptureSource(source);
}