Calibrate Event
Collapse the table of content
Expand the table of content

Motion.Calibrate Event

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

Occurs when the operating detects that the compass needs calibration.

Namespace:  Microsoft.Devices.Sensors
Assembly:  Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Event Calibrate As EventHandler(Of CalibrationEventArgs)
<object Calibrate="EventHandler<CalibrationEventArgs>" .../>

The device’s compass sensor, which is required by the Motion class, may occasionally require user-assisted calibration. If the HeadingAccuracy exceeds +/- 20 degrees, this event is raised. Applications should implement their own calibration user interface. For information about implementing compass calibration, see How to get data from the compass sensor for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft