Motion Class

Inheritance Hierarchy

System.Object
  Microsoft.Devices.Sensors.SensorBase<MotionReading>
    Microsoft.Devices.Sensors.Motion

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

Syntax

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

The Motion type exposes the following members.

Constructors

  Name Description
Public method Motion

Top

Properties

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

Top

Methods

  Name Description
Public method Dispose (Inherited from SensorBase<TSensorReading>.)
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 (Inherited from SensorBase<TSensorReading>.)
Public method Stop (Inherited from SensorBase<TSensorReading>.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

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

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