setZoom method

Future<void> setZoom(
  1. int value
)

Sets current zoom value.

If the camera is zoomed (value > 0), the actual picture size may be smaller than picture size setting. Applications can check the actual picture size after picture is returned from PictureCallback. The preview size remains the same in zoom. Applications should check isZoomSupported before using this method.

The valid range is 0 to getMaxZoom.

Implementation

Future<void> setZoom(int value) {
  return _channel.$setZoom(this, value);
}