Android.Hardware.Camera.StartSmoothZoom Method
Zooms to the requested value smoothly.

Syntax

[Android.Runtime.Register("startSmoothZoom", "(I)V", "")]
public void StartSmoothZoom (int value)

See Also

Camera.SetZoomChangeListener(.IOnZoomChangeListener)

Parameters

value
zoom value. The valid range is 0 to NoType:android/hardware/Camera$Parameters;Href=../../../reference/android/hardware/Camera.Parameters.html#getMaxZoom().

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the zoom value is invalid.
Java.Lang.RuntimeExceptionif the method fails.

Remarks

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.

[Android Documentation]

Requirements

Namespace: Android.Hardware
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8