Android.Hardware.SensorType Enumeration
Enumerates values returned by several types and taken as a parameter of several types.

Syntax

public enum SensorType

Remarks

Enumerates values returned by the following: and taken as a parameter of the following: .

Members

Member NameDescription
AccelerometerA constant describing an accelerometer sensor type. See SensorEvent.Values for more details.
AllA constant describing all sensor types.
AmbientTemperatureA constant describing an ambient temperature sensor type
GameRotationVector

Identical to SensorType.RotationVector except that it doesn't use the geomagnetic field. Therefore the Y axis doesn't point north, but instead to some other reference, that reference is allowed to drift by the same order of magnitude as the gyroscope drift around the Z axis.

In the ideal case, a phone rotated and returning to the same real-world orientation should report the same game rotation vector (without using the earth's geomagnetic field). However, the orientation may drift somewhat over time.

GeomagneticRotationVectorDocumentation for this section has not yet been entered.
GravityA constant describing a gravity sensor type. See Android.Hardware.SensorEvent for more details.
GyroscopeA constant describing a gyroscope sensor type
GyroscopeUncalibrated

A constant describing a gyroscope uncalibrated sensor type. See SensorEvent.Values for more details.

No gyro-drift compensation is performed. Factory calibration and temperature compensation is still applied to the rate of rotation (angular speeds).

HeartRateDocumentation for this section has not yet been entered.
LightA constant describing a light sensor type. See SensorEvent.Values for more details.
LinearAccelerationA constant describing a linear acceleration sensor type. See Android.Hardware.SensorEvent for more details.
MagneticFieldA constant describing a magnetic field sensor type. See SensorEvent.Values for more details.
MagneticFieldUncalibrated

A constant describing a magnetic field uncalibrated sensor type. See SensorEvent.Values for more details.

Similar to SensorType.MagneticField but the hard iron calibration (calibration due to distortions that arise from magnetized iron, steel or permanenet magnets on the device) is reported separately. No periodic calibration is performed (i.e. there are no discontinuities in the data stream while using this sensor). Assumptions that the magnetic field is due to the Earth's poles is avoided. Factory calibration and temperature compensation are still performed.

OrientationA constant describing an orientation sensor type. See SensorEvent.Values for more details.
PressureA constant describing a pressure sensor type
ProximityA constant describing a proximity sensor type. See SensorEvent.Values for more details.
RelativeHumidityA constant describing a relative humidity sensor type. See Android.Hardware.SensorEvent for more details.
RotationVectorA constant describing a rotation vector sensor type. See Android.Hardware.SensorEvent for more details.
SignificantMotion

A constant describing the significant motion trigger sensor. See SensorEvent.Values for more details.

It triggers when an event occurs and then automatically disables itself. The sensor continues to operate while the device is asleep and will automatically wake the device to notify when significant motion is detected. The application does not need to hold any wake locks for this sensor to trigger.

StepCounterDocumentation for this section has not yet been entered.
StepDetectorDocumentation for this section has not yet been entered.
TemperatureA constant describing a temperature sensor type

Requirements

Namespace: Android.Hardware
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0