res/middleware/cordova/3.4.0/android/plugins/org.apache.cordova.device-orientation/www/compass.js
function(successCallback, errorCallback, options) {
            argscheck.checkArgs('fFO', 'compass.getCurrentHeading', arguments);

            var win = function(result) {
                var ch = new CompassHeading(result.magneticHeading, result.trueHeading, result.headingAccuracy, result.timestamp);
                successCallback(ch);
            };
            var fail = errorCallback && function(code) {
                var ce = new CompassError(code);
                errorCallback(ce);
            };

            // Get heading
            exec(win, fail, "Compass", "getHeading", [options]);
        }
function(successCallback, errorCallback, options) {
            argscheck.checkArgs('fFO', 'compass.getCurrentHeading', arguments);

            var win = function(result) {
                var ch = new CompassHeading(result.magneticHeading, result.trueHeading, result.headingAccuracy, result.timestamp);
                successCallback(ch);
            };
            var fail = errorCallback && function(code) {
                var ce = new CompassError(code);
                errorCallback(ce);
            };

            // Get heading
            exec(win, fail, "Compass", "getHeading", [options]);
        }
function ( successCallback , errorCallback , options ) { argscheck . checkArgs ( 'fFO' , 'compass.getCurrentHeading' , arguments ) ; var win = function ( result ) { var ch = new CompassHeading ( result . magneticHeading , result . trueHeading , result . headingAccuracy , result . timestamp ) ; successCallback ( ch ) ; } ; var fail = errorCallback && function ( code ) { var ce = new CompassError ( code ) ; errorCallback ( ce ) ; } ; // Get heading exec ( win , fail , "Compass" , "getHeading" , [ options ] ) ; }
Asynchronously acquires the current heading.
@param {Function} successCallback The function to call when the heading
data is available
@param {Function} errorCallback The function to call when there is an error
getting the heading data.
@param {CompassOptions} options The options for getting the heading data (not used).
Asynchronously acquires the current heading .