2 out of 2 rated this helpful - Rate this topic

Microsoft.Devices.Sensors Namespace

Windows Phone

March 22, 2012

This namespace provides access to APIs to access the accelerometer.

  Class Description
Public class Accelerometer Provides Windows Phone applications access to the device’s accelerometer sensor.
Public class AccelerometerFailedException The exception that may be thrown during a call to Start() or Stop(). The Message field describes the reason for the exception and the ErrorId field contains the error code from the underlying native code implementation of the accelerometer framework.
Public class AccelerometerReadingEventArgs Provides data for ReadingChanged events.
Public class CalibrationEventArgs Provides data for Calibrate and events.
Public class Compass Provides Windows Phone applications access to the device’s compass sensor.
Public class Gyroscope Provides Windows Phone applications access to the device’s gyroscope sensor.
Public class Motion Provides Windows Phone applications information about the device’s orientation and motion.
Public class SensorBase<TSensorReading> The base class for all Windows Phone sensor classes.
Public class SensorFailedException Represents the exception that is thrown when a sensor operation fails.
Public class SensorReadingEventArgs<T> Provides data for CurrentValueChanged events.
  Structure Description
Public structure AccelerometerReading Contains the acceleration and timestamp for an accelerometer reading, indicating the magnitude and direction of forces applied to the device.
Public structure AttitudeReading Contains information about the orientation of the device in space.
Public structure CompassReading Contains information about the magnetic field detected by the device’s compass sensor, which can be used to determine the orientation of the device relative to the Earth’s magnetic field.
Public structure GyroscopeReading Contains information about the rotation acceleration of the device.
Public structure MotionReading Contains information about the orientation and movement of the device.
  Interface Description
Public interface ISensorReading The interface that is implemented by all sensor reading classes.
  Enumeration Description
Public enumeration SensorState An enumeration of values for expressing the current state of the accelerometer. The state of a sensor can be obtained using its State property.

Did you find this helpful?
(1500 characters remaining)