onCameraFocusAreaChanged property

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

相机对焦区域已改变回调。

该回调是由本地用户调用 setCameraFocusPositionInPreview 方法改变对焦位置触发的。 该回调仅适用于 Android 和 iOS。

  • x 发生改变的对焦区域的 x 坐标。
  • y 发生改变的对焦区域的 y 坐标。
  • width 发生改变的对焦区域的宽度。
  • height 发生改变的对焦区域的高度。

Implementation

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