Share via


IAccelerometer Interface

Definition

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

Name Description
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

Name Description
Start(SensorSpeed)

Start monitoring for changes to accelerometer.

Stop()

Stop monitoring for changes to accelerometer.

Events

Name Description
ReadingChanged

Occurs when the sensor reading changes.

ShakeDetected

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

Applies to