This version of the documentation is outdated!
Click here for the latest released version.
compassSuccess
onSuccess callback function that provides the compass heading information via a compassHeading object.
function(heading) {
// Do something
}
Parameters
- heading: The heading information. (compassHeading)
Example
function onSuccess(heading) {
alert('Heading: ' + heading.magneticHeading);
};