iphoneSetHeadingCalibrationTimeout | |||||||
Type | command | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Sets the maximum length of time a prompt for calibration is displayed to the user. | ||||||
Introduced | 4.6.1 | ||||||
OS | ios | ||||||
Platforms | mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Command: mobileStopTrackingSensor, mobileStartTrackingSensor Function: mobileCurrentHeading, iphoneHeadingCalibrationTimeout, mobileCanTrackHeading Message: trackingError, headingChanged | ||||||
Description | Use the iphoneSetHeadingCalibrationTimeout command to control the length of time the system shows the calibration prompt to the user. It is sometimes necessary for the system to prompt the user to calibrate the magnetometer in order to provide reliable heading information. By default this facility is turned off - i.e. the system will not prompt for calibration. Use the iphoneSetHeadingCalibrationTimeout command to set the maximum length of time a prompt for calibration is displayed to the user. If timeoutInSeconds is 0 no calibration prompt is shown to the user, if non-zero it determines the maximum length of time the prompt for calibration is shown to the user. If the user does not choose to calibrate the device within that time the prompt will be dismissed. The current setting of the timeout can be queried using the iphoneHeadingCalibrationTimeout function. |