HeadingTrueNorth | headingTrueNorth property
Collapse the table of content
Expand the table of content

CompassReading.HeadingTrueNorth | headingTrueNorth property

Gets the heading in degrees relative to geographic true-north.

Syntax


public:
property IReference<double>^ HeadingTrueNorth { 
   IReference<double>^ get();
}

Property value

Type: IReference<Double> [JavaScript/C++] | System.Nullable<Double> [.NET]

The true-north heading.

Remarks

Before retrieving this property, your code should first check to verify that the value is not null. (If the value is null and you attempt to retrieve it, Windows will generate an exception.)

In order to retrieve the declination, your app needs to have access to the device's current location. If the location is not available, the declination defaults to 0 degrees. In this scenario, HeadingTrueNorth equals HeadingMagneticNorth.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Sensors
Windows::Devices::Sensors [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Devices.Sensors
Windows::Devices::Sensors [C++]

Metadata

Windows.winmd

See also

CompassReading

 

 

Show:
© 2016 Microsoft