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 | |
---|---|---|
Accelerometer |
Top
Properties
Name | Description | |
---|---|---|
CurrentValue | (Inherited from SensorBase<TSensorReading>.) | |
IsDataValid | (Inherited from SensorBase<TSensorReading>.) | |
IsSupported | ||
State | ||
TimeBetweenUpdates | (Inherited from SensorBase<TSensorReading>.) |
Top
Methods
Name | Description | |
---|---|---|
Dispose | ||
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Start | ||
Stop | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
CurrentValueChanged | (Inherited from SensorBase<TSensorReading>.) | |
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.