setExposurePoint method

  1. @override
Future<void> setExposurePoint(
  1. int cameraId,
  2. Point<double>? point
)

Sets the exposure point for automatically determining the exposure values.

Supplying null for the point argument will result in resetting to the original exposure point value.

Implementation

@override
Future<void> setExposurePoint(int cameraId, Point<double>? point) {
  assert(point == null || point.x >= 0 && point.x <= 1);
  assert(point == null || point.y >= 0 && point.y <= 1);

  return _channel.invokeMethod<void>(
    'setExposurePoint',
    <String, dynamic>{
      'cameraId': cameraId,
      'reset': point == null,
      'x': point?.x,
      'y': point?.y,
    },
  );
}