CompassReading CompassReading CompassReading CompassReading CompassReading Class


Represents a compass reading.

public : sealed class CompassReading : ICompassReading, ICompassReadingHeadingAccuracy
struct winrt::Windows::Devices::Sensors::CompassReading : ICompassReading, ICompassReadingHeadingAccuracy
public sealed class CompassReading : ICompassReading, ICompassReadingHeadingAccuracy
Public NotInheritable Class CompassReading Implements ICompassReading, ICompassReadingHeadingAccuracy
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


This object is accessed when you invoke the GetCurrentReading method; and, it is accessed when you retrieve the Reading property of the CompassReadingChangedEventArgs object in the event callback method.


HeadingAccuracy HeadingAccuracy HeadingAccuracy HeadingAccuracy HeadingAccuracy

Gets the compass's heading accuracy.

HeadingMagneticNorth HeadingMagneticNorth HeadingMagneticNorth HeadingMagneticNorth HeadingMagneticNorth

Gets the heading in degrees relative to magnetic-north.

HeadingTrueNorth HeadingTrueNorth HeadingTrueNorth HeadingTrueNorth HeadingTrueNorth

Gets the heading in degrees relative to geographic true-north.

PerformanceCount PerformanceCount PerformanceCount PerformanceCount PerformanceCount

Gets the performance count associated with the reading. This allows the reading to be synchronized with other devices and processes on the system.

Properties Properties Properties Properties Properties

Gets the data properties reported by the sensor.

Timestamp Timestamp Timestamp Timestamp Timestamp

Gets the time at which the sensor reported the reading.

See Also