Compass.IsSupported Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets whether the device on which the application is running supports the compass sensor.

Namespace:  Microsoft.Devices.Sensors
Assembly:  Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)

Syntax

Public Shared Property IsSupported As Boolean
public static bool IsSupported { get; internal set; }

Property Value

Type: System..::.Boolean
Type: Boolean. true if the device on which the application is running supports the compass sensor; otherwise, false.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

Compass Class

Microsoft.Devices.Sensors Namespace