Stay organized with collections
Save and categorize content based on your preferences.
android.hardware
Interfaces
AutoFocusCallback |
Callback interface used to notify on completion of camera auto focus.
|
AutoFocusMoveCallback |
Callback interface used to notify on auto focus start and stop.
|
ErrorCallback |
Callback interface for camera error notification.
|
FaceDetectionListener |
Callback interface for face detected in the preview frame.
|
OnZoomChangeListener |
Callback interface for zoom changes during a smooth zoom operation.
|
PictureCallback |
Callback interface used to supply image data from a photo capture.
|
PreviewCallback |
Callback interface used to deliver copies of preview frames as they are displayed.
|
ShutterCallback |
Callback interface used to signal the moment of actual image capture.
|
SensorEventListener |
Used for receiving notifications from the SensorManager when there is new sensor data.
|
SensorEventListener2 |
Used for receiving a notification when a flush() has been successfully completed.
|
SensorListener |
Used for receiving notifications from the SensorManager when sensor values have changed.
|
Classes
BatteryState |
The BatteryState class is a representation of a single battery on a device.
|
Camera |
The Camera class is used to set image capture settings, start/stop preview, snap pictures, and retrieve frames for encoding for video.
|
ConsumerIrManager |
Class that operates consumer infrared on the device.
|
DataSpace |
DataSpace identifies three components of colors - standard (primaries), transfer and range.
|
DisplayLuts |
DisplayLuts provides the developers to apply Lookup Tables (Luts) to a android.view.SurfaceControl .
|
GeomagneticField |
Estimates magnetic field at a given point on Earth, and in particular, to compute the magnetic declination from true north.
|
HardwareBuffer |
HardwareBuffer wraps a native AHardwareBuffer object, which is a low-level object representing a memory buffer accessible by various hardware units.
|
LutProperties |
Provides Lut properties of the device.
|
OverlayProperties |
Provides supported overlay properties of the device.
|
Sensor |
Class representing a sensor.
|
SensorAdditionalInfo |
This class represents a Sensor additional information frame, which is reported through listener callback onSensorAdditionalInfo .
|
SensorDirectChannel |
Class representing a sensor direct channel.
|
SensorEvent |
This class represents a Sensor event and holds information such as the sensor's type, the time-stamp, accuracy and of course the sensor's data .
|
SensorEventCallback |
Used for receiving sensor additional information frames.
|
SensorManager |
SensorManager lets you access the device's sensors .
|
SensorPrivacyManager |
This class provides information about the microphone and camera toggles.
|
SyncFence |
A SyncFence represents a synchronization primitive which signals when hardware units have completed work on a particular resource.
|
TriggerEvent |
This class represents a Trigger Event - the event associated with a Trigger Sensor.
|
TriggerEventListener |
This class is the listener used to handle Trigger Sensors.
|
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-13 UTC.
[null,null,["Last updated 2025-02-13 UTC."],[],[],null,["# android.hardware\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/hardware/package-summary \"View this page in Java\")\n\nInterfaces\n----------\n\n|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [AutoFocusCallback](/reference/kotlin/android/hardware/Camera.AutoFocusCallback) | Callback interface used to notify on completion of camera auto focus. |\n| [AutoFocusMoveCallback](/reference/kotlin/android/hardware/Camera.AutoFocusMoveCallback) | Callback interface used to notify on auto focus start and stop. |\n| [ErrorCallback](/reference/kotlin/android/hardware/Camera.ErrorCallback) | Callback interface for camera error notification. |\n| [FaceDetectionListener](/reference/kotlin/android/hardware/Camera.FaceDetectionListener) | Callback interface for face detected in the preview frame. |\n| [OnZoomChangeListener](/reference/kotlin/android/hardware/Camera.OnZoomChangeListener) | Callback interface for zoom changes during a smooth zoom operation. |\n| [PictureCallback](/reference/kotlin/android/hardware/Camera.PictureCallback) | Callback interface used to supply image data from a photo capture. |\n| [PreviewCallback](/reference/kotlin/android/hardware/Camera.PreviewCallback) | Callback interface used to deliver copies of preview frames as they are displayed. |\n| [ShutterCallback](/reference/kotlin/android/hardware/Camera.ShutterCallback) | Callback interface used to signal the moment of actual image capture. |\n| [SensorEventListener](/reference/kotlin/android/hardware/SensorEventListener) | Used for receiving notifications from the SensorManager when there is new sensor data. |\n| [SensorEventListener2](/reference/kotlin/android/hardware/SensorEventListener2) | Used for receiving a notification when a flush() has been successfully completed. |\n| [SensorListener](/reference/kotlin/android/hardware/SensorListener) | Used for receiving notifications from the SensorManager when sensor values have changed. |\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BatteryState](/reference/kotlin/android/hardware/BatteryState) | The BatteryState class is a representation of a single battery on a device. |\n| [Camera](/reference/kotlin/android/hardware/Camera) | The Camera class is used to set image capture settings, start/stop preview, snap pictures, and retrieve frames for encoding for video. |\n| [ConsumerIrManager](/reference/kotlin/android/hardware/ConsumerIrManager) | Class that operates consumer infrared on the device. |\n| [DataSpace](/reference/kotlin/android/hardware/DataSpace) | DataSpace identifies three components of colors - standard (primaries), transfer and range. |\n| [DisplayLuts](/reference/kotlin/android/hardware/DisplayLuts) | DisplayLuts provides the developers to apply Lookup Tables (Luts) to a [android.view.SurfaceControl](../view/SurfaceControl.html#). |\n| [GeomagneticField](/reference/kotlin/android/hardware/GeomagneticField) | Estimates magnetic field at a given point on Earth, and in particular, to compute the magnetic declination from true north. |\n| [HardwareBuffer](/reference/kotlin/android/hardware/HardwareBuffer) | HardwareBuffer wraps a native `AHardwareBuffer` object, which is a low-level object representing a memory buffer accessible by various hardware units. |\n| [LutProperties](/reference/kotlin/android/hardware/LutProperties) | Provides Lut properties of the device. |\n| [OverlayProperties](/reference/kotlin/android/hardware/OverlayProperties) | Provides supported overlay properties of the device. |\n| [Sensor](/reference/kotlin/android/hardware/Sensor) | Class representing a sensor. |\n| [SensorAdditionalInfo](/reference/kotlin/android/hardware/SensorAdditionalInfo) | This class represents a [Sensor](/reference/kotlin/android/hardware/Sensor) additional information frame, which is reported through listener callback [onSensorAdditionalInfo](/reference/kotlin/android/hardware/SensorEventCallback#onSensorAdditionalInfo(android.hardware.SensorAdditionalInfo)). |\n| [SensorDirectChannel](/reference/kotlin/android/hardware/SensorDirectChannel) | Class representing a sensor direct channel. |\n| [SensorEvent](/reference/kotlin/android/hardware/SensorEvent) | This class represents a [Sensor](/reference/kotlin/android/hardware/Sensor) event and holds information such as the sensor's type, the time-stamp, accuracy and of course the sensor's [data](/reference/kotlin/android/hardware/SensorEvent#values:kotlin.FloatArray). |\n| [SensorEventCallback](/reference/kotlin/android/hardware/SensorEventCallback) | Used for receiving sensor additional information frames. |\n| [SensorManager](/reference/kotlin/android/hardware/SensorManager) | SensorManager lets you access the device's [sensors](/reference/kotlin/android/hardware/Sensor). |\n| [SensorPrivacyManager](/reference/kotlin/android/hardware/SensorPrivacyManager) | This class provides information about the microphone and camera toggles. |\n| [SyncFence](/reference/kotlin/android/hardware/SyncFence) | A SyncFence represents a synchronization primitive which signals when hardware units have completed work on a particular resource. |\n| [TriggerEvent](/reference/kotlin/android/hardware/TriggerEvent) | This class represents a Trigger Event - the event associated with a Trigger Sensor. |\n| [TriggerEventListener](/reference/kotlin/android/hardware/TriggerEventListener) | This class is the listener used to handle Trigger Sensors. |"]]