Android.Hardware Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides support for hardware features, such as the camera and other sensors.
Classes
| Name | Description |
|---|---|
| AccuracyChangedEventArgs |
Provides data for a change in sensor accuracy. |
| 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. |
| Camera.Area |
The Area class is used for choosing specific metering and focus areas for the camera to use when calculating auto-exposure, auto-white balance, and auto-focus. |
| Camera.CameraInfo |
Information about a camera |
| Camera.Face |
Information about a face identified through camera face detection. |
| Camera.FaceDetectionEventArgs |
Provides data for the FaceDetection event. |
| Camera.Parameters |
Camera service settings. |
| Camera.Size |
Image size (width and height dimensions). |
| Camera.ZoomChangeEventArgs |
Provides data for the ZoomChange event. |
| ConsumerIrManager |
Class that operates consumer infrared on the device. |
| ConsumerIrManager.CarrierFrequencyRange |
Represents a range of carrier frequencies (inclusive) on which the infrared transmitter can transmit |
| DataSpace |
DataSpace identifies three components of colors - standard (primaries), transfer and range. |
| DisplayLuts |
DisplayLuts provides the developers to apply Lookup Tables (Luts) to a
|
| DisplayLuts.Entry |
Represents a display color lookup-table entry. |
| 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 |
| HardwareBuffer.InterfaceConsts |
Provides constants from the parcelable interface implemented by HardwareBuffer. |
| LutProperties |
Provides Lut properties of the device. |
| OverlayProperties |
Provides supported overlay properties of the device. |
| OverlayProperties.InterfaceConsts |
Provides constants from the parcelable interface implemented by OverlayProperties. |
| Sensor |
Class representing a sensor. |
| SensorAdditionalInfo |
This class represents a |
| SensorChangedEventArgs |
Provides data for a sensor event. |
| SensorDirectChannel |
Class representing a sensor direct channel. |
| SensorEvent |
This class represents a |
| SensorEventCallback |
Used for receiving sensor additional information frames. |
| SensorListenerAccuracyChangedEventArgs |
Provides data for a change in legacy sensor accuracy. |
| SensorListenerSensorChangedEventArgs |
Provides data for a change in legacy sensor values. |
| SensorManager |
SensorManager lets you access the device's |
| SensorManager.DynamicSensorCallback |
Used for receiving notifications from the SensorManager when dynamic sensors are connected or disconnected. |
| SensorPrivacyManager |
This class provides information about the microphone and camera toggles. |
| SensorPrivacyManager.Sensors |
Sensor constants which are used in |
| SyncFence |
A SyncFence represents a synchronization primitive which signals when hardware units have completed work on a particular resource. |
| SyncFence.InterfaceConsts |
Provides constants from the parcelable interface implemented by SyncFence. |
| 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. |
Interfaces
| Name | Description |
|---|---|
| Camera.IAutoFocusCallback |
Callback interface used to notify on completion of camera auto focus. |
| Camera.IAutoFocusMoveCallback |
Callback interface used to notify on auto focus start and stop. |
| Camera.IErrorCallback |
Callback interface for camera error notification. |
| Camera.IFaceDetectionListener |
Callback interface for face detected in the preview frame. |
| Camera.IOnZoomChangeListener |
Callback interface for zoom changes during a smooth zoom operation. |
| Camera.IPictureCallback |
Callback interface used to supply image data from a photo capture. |
| Camera.IPreviewCallback |
Callback interface used to deliver copies of preview frames as they are displayed. |
| Camera.IShutterCallback |
Callback interface used to signal the moment of actual image capture. |
| ISensorEventListener |
Used for receiving notifications from the SensorManager when there is new sensor data. |
| ISensorEventListener2 |
Used for receiving a notification when a flush() has been successfully completed. |
| ISensorListener |
Used for receiving notifications from the SensorManager when sensor values have changed. |
Enums
| Name | Description |
|---|---|
| Axis |
Specifies an axis, or its negative direction, for a sensor coordinate-system transformation. |
| BatteryStatus |
Specifies the charging status of a device battery. |
| CameraError |
Enumerates values returned by the ServerDied, and Unknown members and taken as a parameter of the F:Android.Hardware.Camera+IErrorCallback.OnError member. |
| CameraFacing |
Enumerates values returned by several types. |
| DataSpaceRange |
Specifies the numeric range component of a data space. |
| DataSpaceStandard |
Specifies the color-standard component of a data space. |
| DataSpaceTransfer |
Specifies the transfer-function component of a data space. |
| DataSpaceType |
Specifies how buffer data is interpreted. |
| FocusDistance |
Enumerates values returned by several types. |
| HardwareBufferFormat |
Specifies the pixel or data format of a hardware buffer. |
| HardwareBufferUsage |
Specifies how a hardware buffer will be used. |
| LutPropertiesDimension |
Specifies the number of dimensions of a display lookup table. |
| LutPropertiesSamplingKey |
Specifies the channel value used to sample a display lookup table. |
| Preview |
Enumerates values returned by several types. |
| PrivacySensors |
Identifies a sensor controlled by sensor privacy settings. |
| ReportingMode |
Enumerates values returned by several types. |
| SensorAdditionalInfoType |
Identifies the type of an additional sensor-information frame. |
| SensorDelay |
Enumerates values returned by several methods of SensorDelay and taken as a parameter of several types. |
| SensorDirectChannelType |
Specifies the shared-memory type used for a direct sensor channel. |
| SensorDirectRateLevel |
Specifies a nominal direct sensor reporting rate, or stops reporting. |
| SensorPrivacyToggleType |
Identifies a software or hardware sensor privacy toggle. |
| SensorStatus |
Enumerates values returned by several types and taken as a parameter of several types. |
| SensorType |
Enumerates values returned by several types and taken as a parameter of several types. |
Remarks
Use these APIs to access cameras, sensors, consumer infrared transmission, and hardware buffers. The namespace also contains sensor event data, callback interfaces, and display composition properties.