Dil

CaptureRequest.Builder.SetPhysicalCameraKey Method

Definition

Set a capture request field to a value.

[Android.Runtime.Register("setPhysicalCameraKey", "(Landroid/hardware/camera2/CaptureRequest$Key;Ljava/lang/Object;Ljava/lang/String;)Landroid/hardware/camera2/CaptureRequest$Builder;", "", ApiSince=28)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Android.Hardware.Camera2.CaptureRequest.Builder? SetPhysicalCameraKey(Android.Hardware.Camera2.CaptureRequest.Key key, Java.Lang.Object? value, string physicalCameraId);
[<Android.Runtime.Register("setPhysicalCameraKey", "(Landroid/hardware/camera2/CaptureRequest$Key;Ljava/lang/Object;Ljava/lang/String;)Landroid/hardware/camera2/CaptureRequest$Builder;", "", ApiSince=28)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.SetPhysicalCameraKey : Android.Hardware.Camera2.CaptureRequest.Key * Java.Lang.Object * string -> Android.Hardware.Camera2.CaptureRequest.Builder

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.

physicalCameraId
String

A valid physical camera Id. The valid camera Ids can be obtained via calls to CameraCharacteristics.getPhysicalCameraIds. This value cannot be null.

Returns

The builder object.

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.

This method can be called for logical camera devices, which are devices that have REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA capability and calls to CameraCharacteristics.getPhysicalCameraIds return a non-empty set of physical devices that are backing the logical camera. The camera Id included in the 'physicalCameraId' argument selects an individual physical device that will receive the customized capture request field.

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

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