Stay organized with collections
Save and categorize content based on your preferences.
Sensors
class Sensors
Sensor constants which are used in SensorPrivacyManager
Summary
Constants |
static Int |
Constant for the camera
|
static Int |
Constant for the microphone
|
Constants
CAMERA
static val CAMERA: Int
Constant for the camera
Value: 2
MICROPHONE
static val MICROPHONE: Int
Constant for the microphone
Value: 1
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SensorPrivacyManager.Sensors\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSensors\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/hardware/SensorPrivacyManager.Sensors \"View this page in Java\") \n\n```\nclass Sensors\n```\n\n|---|----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.hardware.SensorPrivacyManager.Sensors](#) |\n\nSensor constants which are used in [SensorPrivacyManager](/reference/kotlin/android/hardware/SensorPrivacyManager)\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CAMERA](#CAMERA:kotlin.Int) Constant for the camera |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [MICROPHONE](#MICROPHONE:kotlin.Int) Constant for the microphone |\n\nConstants\n---------\n\n### CAMERA\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CAMERA: Int\n```\n\nConstant for the camera \n\n Value: 2\n\n### MICROPHONE\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val MICROPHONE: Int\n```\n\nConstant for the microphone \n\n Value: 1"]]