onWindowStateChanged method

void onWindowStateChanged(
  1. ZegoScreenCaptureSource source,
  2. ZegoScreenCaptureWindowState windowState,
  3. Rect windowRect
)

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

Available since: 3.4.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.
  • windowState Capture window state.
  • windowRect Capture window rect.

Implementation

void onWindowStateChanged(
  ZegoScreenCaptureSource source,
  ZegoScreenCaptureWindowState windowState,
  Rect windowRect,
) {}