IAccelerometer Interface
Definition
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.
Accelerometer data of the acceleration of the device in three-dimensional space.
public interface class IAccelerometer
public interface IAccelerometer
type IAccelerometer = interface
Public Interface IAccelerometer
Properties
IsMonitoring |
Gets a value indicating whether the accelerometer is being monitored. |
IsSupported |
Gets a value indicating whether reading the accelerometer is supported on this device. |
Methods
Start(SensorSpeed) |
Start monitoring for changes to accelerometer. |
Stop() |
Stop monitoring for changes to accelerometer. |
Events
ReadingChanged |
Occurs when the sensor reading changes. |
ShakeDetected |
Occurs when the accelerometer detects that the device has been shaken. |