- Overview
- The Command-line Interface
- Platform Guides
- The config.xml File
- Embedding WebViews
- Plugin Development Guide
- Privacy Guide
- Whitelist Guide
- Accelerometer
- Camera
- Capture
- Compass
- Connection
- Contacts
- Device
- Events
- File
- Geolocation
- Globalization
- InAppBrowser
- Media
- Notification
- Splashscreen
- Storage
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](compassHeading.html)
object.
function(heading) {
// Do something
}
Parameters
- heading: The heading information. (compassHeading)
Example
function onSuccess(heading) {
alert('Heading: ' + heading.magneticHeading);
};