onCameraFocusAreaChanged property

void Function(int x, int y, int width, int height)? onCameraFocusAreaChanged
final

Occurs when the camera focus area changes.

The SDK triggers this callback when the local user changes the camera focus position by calling setCameraFocusPositionInPreview. This callback is for Android and iOS only.

  • x The x-coordinate of the changed camera focus area.
  • y The y-coordinate of the changed camera focus area.
  • width The width of the changed camera focus area.
  • height The height of the changed camera focus area.

Implementation

final void Function(int x, int y, int width, int height)?
    onCameraFocusAreaChanged;