Language

CameraDevice.Id Property

Definition

Get the ID of this camera device.

public abstract string Id { [Android.Runtime.Register("getId", "()Ljava/lang/String;", "GetGetIdHandler")] get; }
[<get: Android.Runtime.Register("getId", "()Ljava/lang/String;", "GetGetIdHandler")>]
member this.Id : string

Property Value

the ID for this camera device. This value cannot be null.

Attributes

Remarks

Get the ID of this camera device.

This matches the ID given to CameraManager.openCamera to instantiate this this camera device.

This ID can be used to query the camera device's fixed properties with CameraManager.getCameraCharacteristics.

This method can be called even if the device has been closed or has encountered a serious error.

Android reference for android.hardware.camera2.CameraDevice.getId.

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

See also