Share via


CameraMetadata.ControlZoomMethodAuto Field

Definition

Caution

This constant will be removed in the future version. Use Android.Hardware.Camera2.ControlZoomMethod enum directly instead of this field.

The camera device automatically detects whether the application does zoom with CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion or CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio, and in turn decides which metadata tag reflects the effective zoom level.

[Android.Runtime.Register("CONTROL_ZOOM_METHOD_AUTO", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Hardware.Camera2.ControlZoomMethod enum directly instead of this field.", true)]
public const Android.Hardware.Camera2.ControlZoomMethod ControlZoomMethodAuto = 0;
[<Android.Runtime.Register("CONTROL_ZOOM_METHOD_AUTO", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Hardware.Camera2.ControlZoomMethod enum directly instead of this field.", true)>]
val mutable ControlZoomMethodAuto : Android.Hardware.Camera2.ControlZoomMethod

Field Value

Value = 0
Attributes

Remarks

The camera device automatically detects whether the application does zoom with CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion or CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio, and in turn decides which metadata tag reflects the effective zoom level.

Java documentation for android.hardware.camera2.CameraMetadata.CONTROL_ZOOM_METHOD_AUTO.

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