onCameraFocusAreaChanged property

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

Callback when the camera focus area changes.

This callback is triggered when the local user calls setCameraFocusPositionInPreview to change the focus position. This callback is applicable only to Android and iOS.

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

Implementation

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