Share via


Capability(Int32, Size, Range) Constructor

Definition

Create a new Capability object.

[Android.Runtime.Register(".ctor", "(ILandroid/util/Size;Landroid/util/Range;)V", "", ApiSince=34)]
public Capability (int mode, Android.Util.Size maxStreamingSize, Android.Util.Range zoomRatioRange);
[<Android.Runtime.Register(".ctor", "(ILandroid/util/Size;Landroid/util/Range;)V", "", ApiSince=34)>]
new Android.Hardware.Camera2.Params.Capability : int * Android.Util.Size * Android.Util.Range -> Android.Hardware.Camera2.Params.Capability

Parameters

mode
Int32

supported mode for a camera capability.

maxStreamingSize
Size

The maximum streaming size for this mode

zoomRatioRange
Range

the minimum/maximum zoom ratio this mode supports

Attributes

Remarks

Create a new Capability object.

The mode argument can be any integer value. maxStreamingWidth and maxStreamingHeight must be non-negative, while minZoomRatio and maxZoomRatio must be strictly positive.

This constructor is public to allow for easier application testing by creating custom object instances. It's not necessary to construct these objects during normal use of the camera API.

Java documentation for android.hardware.camera2.params.Capability.Capability(int, android.util.Size, android.util.Range<java.lang.Float>).

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