State of accelerometer sensor in windows phone 7

There are six possible values for the SensorState enumeration:

  • Disabled
  • Initiating
  • NoData
  • NoPermissions
  • NotSupported
  • Ready

The Accelerometer.Start() method should be called only if the accelerometer is in a ready state. To get the current state, use the Accelerometer.State property.

Enjoyed this post? Share it!


Leave a comment

Your email address will not be published.