- value
- zoom value. The valid range is 0 to NoType:android/hardware/Camera$Parameters;Href=../../../reference/android/hardware/Camera.Parameters.html#getMaxZoom().
Type Reason Java.Lang.IllegalArgumentException if the zoom value is invalid. Java.Lang.RuntimeException if the method fails.
Zooms to the requested value smoothly. The driver will notify NoType:android/hardware/Camera$OnZoomChangeListener;Href=../../../reference/android/hardware/Camera.OnZoomChangeListener.html 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 NoType:android/hardware/Camera$OnZoomChangeListener;Href=../../../reference/android/hardware/Camera.OnZoomChangeListener.html#onZoomChange(int, boolean, android.hardware.Camera) method will be called three times with zoom values 1, 2, and 3. Applications can call Camera.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 NoType:android/hardware/Camera$Parameters;Href=../../../reference/android/hardware/Camera.Parameters.html#isSmoothZoomSupported() returns true.