CameraCharacteristics.KeysNeedingPermission Property

Definition

Returns a subset of the list returned by #getKeys with all keys that require camera clients to obtain the android.Manifest.permission#CAMERA permission.

public System.Collections.Generic.IList<Android.Hardware.Camera2.CameraCharacteristics.Key> KeysNeedingPermission { [Android.Runtime.Register("getKeysNeedingPermission", "()Ljava/util/List;", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getKeysNeedingPermission", "()Ljava/util/List;", "", ApiSince=29)>]
member this.KeysNeedingPermission : System.Collections.Generic.IList<Android.Hardware.Camera2.CameraCharacteristics.Key>

Property Value

List of camera characteristic keys that require the android.Manifest.permission#CAMERA permission. The list can be empty in case there are no currently present keys that need additional permission.

Attributes

Remarks

Returns a subset of the list returned by #getKeys with all keys that require camera clients to obtain the android.Manifest.permission#CAMERA permission.

If an application calls CameraManager#getCameraCharacteristics without holding the android.Manifest.permission#CAMERA permission, all keys in this list will not be available, and calling #get will return null for those keys. If the application obtains the android.Manifest.permission#CAMERA permission, then the CameraCharacteristics from a call to a subsequent CameraManager#getCameraCharacteristics will have the keys available.

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

Each key is only listed once in the list. The order of the keys is undefined.

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

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