# Print output for @column tags ?> SensorPrivacyManager - Android SDK | Android Developers

Most visited

Recently visited

SensorPrivacyManager

public final class SensorPrivacyManager
extends Object

java.lang.Object
   ↳ android.hardware.SensorPrivacyManager


This class provides information about the microphone and camera toggles.

Summary

Nested classes

class SensorPrivacyManager.Sensors

Individual sensors not listed in Sensors 

Public methods

boolean supportsSensorToggle(int sensor)

Checks if the given toggle is supported on this device

Inherited methods

Public methods

supportsSensorToggle

public boolean supportsSensorToggle (int sensor)

Checks if the given toggle is supported on this device

Parameters
sensor int: The sensor to check Value is SensorPrivacyManager.Sensors.MICROPHONE, or SensorPrivacyManager.Sensors.CAMERA

Returns
boolean whether the toggle for the sensor is supported on this device.