Magnetometer Class

Definition

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.

Applies to