Camera.StartSmoothZoom(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Zooms to the requested value smoothly.
[Android.Runtime.Register("startSmoothZoom", "(I)V", "")]
[System.Obsolete("deprecated")]
public void StartSmoothZoom (int value);
[<Android.Runtime.Register("startSmoothZoom", "(I)V", "")>]
[<System.Obsolete("deprecated")>]
member this.StartSmoothZoom : int -> unit
Parameters
- value
- Int32
zoom value. The valid range is 0 to android.hardware.Camera.Parameters#getMaxZoom
.
- Attributes
Exceptions
if the zoom value is invalid.
if the method fails.
Remarks
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 Camera.OnZoomChangeListener#onZoomChange(int, boolean, Camera)
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 android.hardware.Camera.Parameters#isSmoothZoomSupported
returns true.
Java documentation for android.hardware.Camera.startSmoothZoom(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
See also
- <xref:Android.Hardware.Camera.SetZoomChangeListener(.IOnZoomChangeListener)>