# SensorPrivacyManager.Sensors

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Sensors

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/hardware/SensorPrivacyManager.Sensors "View this page in Java")  

```
class Sensors
```

|---|------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                 ||
| ↳ | [android.hardware.SensorPrivacyManager.Sensors](https://developer.android.com/reference/kotlin/android/hardware/SensorPrivacyManager.Sensors#) |

Sensor constants which are used in[SensorPrivacyManager](https://developer.android.com/reference/kotlin/android/hardware/SensorPrivacyManager)

## Summary

|                                                                                                                   Constants                                                                                                                    ||
|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CAMERA](https://developer.android.com/reference/kotlin/android/hardware/SensorPrivacyManager.Sensors#CAMERA:kotlin.Int) Constant for the camera             |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MICROPHONE](https://developer.android.com/reference/kotlin/android/hardware/SensorPrivacyManager.Sensors#MICROPHONE:kotlin.Int) Constant for the microphone |

## Constants

### CAMERA

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CAMERA: Int
```

Constant for the camera  

    Value: 2

### MICROPHONE

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MICROPHONE: Int
```

Constant for the microphone  

    Value: 1