MagnetometerReading MagnetometerReading MagnetometerReading MagnetometerReading MagnetometerReading Class

Definition

Represents a magnetometer reading.

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

Remarks

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

Properties

DirectionalAccuracy DirectionalAccuracy DirectionalAccuracy DirectionalAccuracy DirectionalAccuracy

Gets the magnetometer's directional accuracy.

MagneticFieldX MagneticFieldX MagneticFieldX MagneticFieldX MagneticFieldX

Gets the magnetic field strength in microteslas along the X axis.

MagneticFieldY MagneticFieldY MagneticFieldY MagneticFieldY MagneticFieldY

Gets the magnetic field strength in microteslas along the Y axis.

MagneticFieldZ MagneticFieldZ MagneticFieldZ MagneticFieldZ MagneticFieldZ

Gets the magnetic field strength in microteslas along the Z axis.

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.