removeIncludedShareWindow method

  1. @override
void removeIncludedShareWindow(
  1. int windowId
)
override

Remove specified windows from the inclusion list of screen sharing (for desktop systems only)

This API takes effect only if the type in TRTCScreenCaptureSourceInfo is specified as TRTCScreenCaptureSourceTypeWindow. That is, the feature of additionally including specified windows works only when a window is shared.

Parameters:

  • windowID(int):
    • Window to be shared (window ID on macOS or HWND on Windows).

Implementation

@override
void removeIncludedShareWindow(int windowId) {
  TRTCLog(_tag, "removeIncludedShareWindow: windowId: $windowId");
  if (Platform.isAndroid || Platform.isIOS) {
    debugPrint("trtc-api not support");
    return;
  }
  TRTCCloudNative.instance.removeIncludedShareWindow(windowId);
}