Magnetometer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Detect device's orentation relative to Earth's magnetic field in microteslas (µ).
public ref class Magnetometer abstract sealed
public static class Magnetometer
type Magnetometer = class
Public Class Magnetometer
- Inheritance
-
Magnetometer
Properties
Default |
Provides the default implementation for static usage of this API. |
IsMonitoring |
Gets a value indicating whether the magnetometer is actively being monitored. |
IsSupported |
Gets a value indicating whether reading the magnetometer is supported on this device. |
Methods
Start(SensorSpeed) |
Start monitoring for changes to the magnetometer. |
Stop() |
Stop monitoring for changes to the magnetometer. |
Events
ReadingChanged |
Occurs when the magnetometer reading changes. |