startSmoothZoom method
Zooms to the requested value smoothly.
The driver will notify OnZoomChangeListener of the zoom value and
whether zoom is stopped at the time. For example, suppose the current zoom
is 0 and startSmoothZoom is called with value 3. The
OnZoomChangeListener method will be called three times with zoom values
1, 2, and 3. Applications can call stopSmoothZoom to stop the zoom
earlier. Applications should not call startSmoothZoom again or change
the zoom value before zoom stops. If the supplied zoom value equals to the
current zoom value, no zoom callback will be generated. This method is
supported if CameraParameters.isSmoothZoomSupported returns true
.
value
: The valid range is 0 to CameraParameters.getMaxZoom.
Throws PlatformException if the zoom value is invalid.
Implementation
Future<void> startSmoothZoom(int value) {
return _channel.$startSmoothZoom(this, value);
}