Share via


Accelerometer Class

Definition

Accelerometer data of the acceleration of the device in three dimensional space.

public ref class Accelerometer abstract sealed
public static class Accelerometer
type Accelerometer = class
Public Class Accelerometer
Inheritance
Accelerometer

Properties

Default

Provides the default implementation for static usage of this API.

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 accelerometer reading changes.

ShakeDetected

Occurs when the accelerometer detects that the device has been shaken.

Applies to