Language

CaptureRequest.Builder.GetPhysicalCameraKey Method

Definition

Get a capture request field value for a specific physical camera Id.

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

Parameters

key
CaptureRequest.Key

The metadata field to read.

physicalCameraId
String

A valid physical camera ID from PhysicalCameraIds. This value cannot be null.

Returns

The value of that key, or null if the field is not set.

Attributes

Remarks

Get a capture request field value for a specific physical camera Id. The field definitions can be found in CaptureRequest.

This method can be called for logical camera devices, which have the LogicalMultiCamera capability and a non-empty PhysicalCameraIds collection of physical devices that back the logical camera. The camera ID in physicalCameraId selects an individual physical device and returns its specific capture request field.

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

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