maxAvailableVideoZoomFactor method

Future<double> maxAvailableVideoZoomFactor()

The maximum zoom factor allowed in the current capture configuration.

On single-camera devices, this value is always equal to the device format’s videoMaxZoomFactor value. On a dual-camera device, the allowed range of video zoom factors can change if the device is delivering depth data to one or more capture outputs.

Setting the setVideoZoomFactor method to (or calling the rampToVideoZoomFactor method with) a value greater than the device format’s videoMaxZoomFactor value always raises an exception. Setting the video zoom factor to a value between the maximum available zoom factor and the device format’s maximum clamps the zoom setting to the maximum available value.

Implementation

Future<double> maxAvailableVideoZoomFactor() async {
  return await _channel.$maxAvailableVideoZoomFactor(this) as double;
}