Share via


Compass Class

Definition

Monitor changes to the orientation of the user's device.

public ref class Compass abstract sealed
public static class Compass
type Compass = class
Public Class Compass
Inheritance
Compass

Properties

Default

Provides the default implementation for static usage of this API.

IsMonitoring

Gets a value indicating whether the compass is actively being monitored.

IsSupported

Gets a value indicating whether reading the compass is supported on this device.

Methods

Start(SensorSpeed, Boolean)

Start monitoring for changes to the compass.

Start(SensorSpeed)

Start monitoring for changes to the compass.

Stop()

Stop monitoring for changes to the compass.

Events

ReadingChanged

Occurs when compass reading changes.

Applies to