Udostępnij za pośrednictwem


CameraCharacteristics.PhysicalCameraIds Property

Definition

Returns the set of physical camera ids that this logical CameraDevice is made up of.

public System.Collections.Generic.ICollection<string> PhysicalCameraIds { [Android.Runtime.Register("getPhysicalCameraIds", "()Ljava/util/Set;", "", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getPhysicalCameraIds", "()Ljava/util/Set;", "", ApiSince=28)>]
member this.PhysicalCameraIds : System.Collections.Generic.ICollection<string>

Property Value

Set of physical camera ids for this logical camera device.

Attributes

Remarks

Returns the set of physical camera ids that this logical CameraDevice is made up of.

A camera device is a logical camera if it has REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA capability. If the camera device doesn't have the capability, the return value will be an empty set.

Prior to API level 29, all returned IDs are guaranteed to be returned by CameraManager#getCameraIdList, and can be opened directly by CameraManager#openCamera. Starting from API level 29, for each of the returned ID, if it's also returned by CameraManager#getCameraIdList, it can be used as a standalone camera by CameraManager#openCamera. Otherwise, the camera ID can only be used as part of the current logical camera.

The set returned is not modifiable, so any attempts to modify it will throw a UnsupportedOperationException.

Java documentation for android.hardware.camera2.CameraCharacteristics.getPhysicalCameraIds().

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