onWindowStateChanged property

(void Function(ZegoScreenCaptureSource source, ZegoScreenCaptureWindowState windowState, Rect windowRect)?) onWindowStateChanged
getter/setter pair

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

static void Function(
    ZegoScreenCaptureSource source,
    ZegoScreenCaptureWindowState windowState,
    Rect windowRect)? onWindowStateChanged;