onRectChanged method

void onRectChanged(
  1. ZegoScreenCaptureSource source,
  2. Rect captureRect
)

The callback will be triggered when the state of the capture target window change.

Available since: 3.7.0 Caution: The callback does not actually take effect until call setEventHandler to set. Restrictions: Only available on Windows/macOS.

  • source Callback screen capture source object.
  • captureRect Capture source rect.

Implementation

void onRectChanged(
  ZegoScreenCaptureSource source,
  Rect captureRect,
) {}