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.
Syntax
Public Event Calibrate As EventHandler(Of CalibrationEventArgs)
public event EventHandler<CalibrationEventArgs> Calibrate
<object Calibrate="EventHandler<CalibrationEventArgs>" .../>
Remarks
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.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone