Share via


IMagnetometer Interface

Definition

Detect device's orentation relative to Earth's magnetic field in microteslas (µ).

public interface class IMagnetometer
public interface IMagnetometer
type IMagnetometer = interface
Public Interface IMagnetometer

Properties

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