Compass.GetDefault Method

Returns the default compass.

Syntax

public:
static Compass^ GetDefault()  

Return value

Type: Compass 

The default compass or null if no integrated compasses are found.

Remarks

This method only returns values for a compass that has been integrated into the computer by the manufacturer. A null value will be returned if the specified sensor is not available in the system.

Requirements

Namespace: Windows.Devices.Sensors

Metadata: windows.winmd

See also

Reference

Compass Class

Compass Members

Windows.Devices.Sensors Namespace