IMagnetometer Interface
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 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. |