Język

CaptureResult.ControlZoomMethod Property

Definition

Whether the application uses android.scaler.cropRegion or android.control.zoomRatio to control zoom levels.

[Android.Runtime.Register("CONTROL_ZOOM_METHOD", ApiSince=36)]
public static Android.Hardware.Camera2.CaptureResult.Key ControlZoomMethod { get; }
[<Android.Runtime.Register("CONTROL_ZOOM_METHOD", ApiSince=36)>]
static member ControlZoomMethod : Android.Hardware.Camera2.CaptureResult.Key

Property Value

Whether the application uses android.scaler.cropRegion or android.control.zoomRatio to control zoom levels.

Attributes

Remarks

Whether the application uses android.scaler.cropRegion or android.control.zoomRatio to control zoom levels.

If set to AUTO, the camera device detects which capture request key the application uses to do zoom, android.scaler.cropRegion or android.control.zoomRatio. If the application doesn't set android.control.zoomRatio or sets it to 1.0 in the capture request, the effective zoom level is reflected in android.scaler.cropRegion in capture results. If android.control.zoomRatio is set to values other than 1.0, the effective zoom level is reflected in android.control.zoomRatio. AUTO is the default value for this control, and also the behavior of the OS before Android version BAKLAVA.

If set to ZOOM_RATIO, the application explicitly specifies zoom level be controlled by android.control.zoomRatio, and the effective zoom level is reflected in android.control.zoomRatio in capture results. This addresses an ambiguity with AUTO, with which the camera device cannot know if the application is using cropRegion or zoomRatio at 1.0x.

Possible values: AUTO; ZOOM_RATIO

Optional - The value for this key may be null on some devices.

Limited capability - Present on all camera devices that report being at least HARDWARE_LEVEL_LIMITED devices in the android.info.supportedHardwareLevel key

Android reference for android.hardware.camera2.CaptureResult.CONTROL_ZOOM_METHOD.

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