- Overview
- Platform Support
- The Command-Line Interface
- Platform Guides
- Using Plugman to Manage Plugins
- The config.xml File
- Icons and Splash Screens
- 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);
};