Share via


Accelerometer Class

Inheritance Hierarchy

System.Object
  Microsoft.Devices.Sensors.SensorBase<AccelerometerReading>
    Microsoft.Devices.Sensors.Accelerometer

Namespace:  Microsoft.Devices.Sensors
Assembly:  Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)

Syntax

'Declaration
Public NotInheritable Class Accelerometer _
    Inherits SensorBase(Of AccelerometerReading)
public sealed class Accelerometer : SensorBase<AccelerometerReading>
public ref class Accelerometer sealed : public SensorBase<AccelerometerReading>
[<Sealed>]
type Accelerometer =  
    class 
        inherit SensorBase<AccelerometerReading>
    end

The Accelerometer type exposes the following members.

Constructors

  Name Description
Public method Accelerometer

Top

Properties

  Name Description
Public property CurrentValue (Inherited from SensorBase<TSensorReading>.)
Public property IsDataValid (Inherited from SensorBase<TSensorReading>.)
Public propertyStatic member IsSupported
Public property State
Public property TimeBetweenUpdates (Inherited from SensorBase<TSensorReading>.)

Top

Methods

  Name Description
Public method Dispose
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Start
Public method Stop
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event CurrentValueChanged (Inherited from SensorBase<TSensorReading>.)
Public event ReadingChanged Obsolete.

Top

Version Information

.NET for Windows Phone apps

Supported in: Windows Phone 8, Silverlight 8.1

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Devices.Sensors Namespace