Dil

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. The valid camera Ids can be obtained via calls to CameraCharacteristics.getPhysicalCameraIds. 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 are devices that have REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA capability and calls to CameraCharacteristics.getPhysicalCameraIds return a non-empty list of physical devices that are backing the logical camera. The camera Id included in the 'physicalCameraId' argument 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