Język

CaptureRequest.Builder.Set(CaptureRequest+Key, Object) Method

Definition

Set a capture request field to a value.

[Android.Runtime.Register("set", "(Landroid/hardware/camera2/CaptureRequest$Key;Ljava/lang/Object;)V", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public void Set(Android.Hardware.Camera2.CaptureRequest.Key key, Java.Lang.Object? value);
[<Android.Runtime.Register("set", "(Landroid/hardware/camera2/CaptureRequest$Key;Ljava/lang/Object;)V", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.Set : Android.Hardware.Camera2.CaptureRequest.Key * Java.Lang.Object -> unit

Parameters

key
CaptureRequest.Key

The metadata field to write. This value cannot be null.

value
Object

The value to set the field to, which must be of a matching type to the key.

Attributes

Remarks

Set a capture request field to a value. The field definitions can be found in CaptureRequest.

Setting a field to null will remove that field from the capture request. Unless the field is optional, removing it will likely produce an error from the camera device when the request is submitted.

Android reference for android.hardware.camera2.CaptureRequest.Builder.set.

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