/**
 * * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Generated by Apache Flex Cross-Compiler from org/apache/cordova/geolocation/Geolocation.as
 * org.apache.cordova.geolocation.Geolocation
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.cordova.geolocation.Geolocation');
goog.require('org.apache.flex.utils.Language');



/**
 * Constructor
 * @constructor
 */
org.apache.cordova.geolocation.Geolocation = function() {
};


/**
 * Gets the device current location. If successful, the onSuccess function is
 * called with position parameter (see Cordova documentation). If failure, the
 * onError function is called with an error parameter (.code and .message members).
 * @export
 * @param {Function} onSuccess
 * @param {Function} onError
 */
org.apache.cordova.geolocation.Geolocation.prototype.getCurrentPosition = function(onSuccess, onError) {
  navigator["geolocation"].getCurrentPosition(onSuccess, onError);
};


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.cordova.geolocation.Geolocation.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Geolocation', qName: 'org.apache.cordova.geolocation.Geolocation'}] };


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.cordova.geolocation.Geolocation', org.apache.cordova.geolocation.Geolocation);



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.cordova.geolocation.Geolocation.prototype.FLEXJS_REFLECTION_INFO = function () {
  return {
    variables: function () {
      return {
      };
    },
    accessors: function () {
      return {
      };
    },
    methods: function () {
      return {
        'Geolocation': { type: '', declaredBy: 'org.apache.cordova.geolocation.Geolocation'},
        'getCurrentPosition': { type: 'void', declaredBy: 'org.apache.cordova.geolocation.Geolocation'}
      };
    },
    metadata: function () { return [ { name: 'Mixin'}]; }
  };
};