Android.Hardware Namespace

Provides support for hardware features, such as the camera and other sensors.

Classes

AccuracyChangedEventArgs
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.

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.

HardwareBuffer.InterfaceConsts
Sensor

Class representing a sensor.

SensorAdditionalInfo

This class represents a android.hardware.Sensor Sensor additional information frame, which is reported through listener callback android.hardware.SensorEventCallback#onSensorAdditionalInfo onSensorAdditionalInfo.

SensorChangedEventArgs
SensorDirectChannel

Class representing a sensor direct channel.

SensorEvent

This class represents a android.hardware.Sensor Sensor event and holds information such as the sensor's type, the time-stamp, accuracy and of course the sensor's SensorEvent#values data.

SensorEventCallback

Used for receiving sensor additional information frames.

SensorListenerAccuracyChangedEventArgs
SensorListenerSensorChangedEventArgs
SensorManager

SensorManager lets you access the device's android.hardware.Sensor sensors.

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 SensorPrivacyManager

SyncFence

A SyncFence represents a synchronization primitive which signals when hardware units have completed work on a particular resource.

SyncFence.InterfaceConsts
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

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

Axis
BatteryStatus
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
DataSpaceStandard
DataSpaceTransfer
DataSpaceType
FocusDistance

Enumerates values returned by several types.

HardwareBufferFormat
Preview

Enumerates values returned by several types.

PrivacySensors
ReportingMode

Enumerates values returned by several types.

SensorAdditionalInfoType
SensorDelay

Enumerates values returned by several methods of SensorDelay and taken as a parameter of several types.

SensorDirectChannelType
SensorDirectRateLevel
SensorPrivacyToggleType
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.