Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
Geolocation

Package | org.apache.cordova.geolocation
Class | public class Geolocation
Inheritance | Geolocation Object

Geolocation provides the interface to the Cordova Geolocation plugin.

Public Methods

| Method | Defined By
--- | --- | ---
|  | Geolocation() Constructor | Geolocation
|  | getCurrentPosition(onSuccess:Function, onError:Function):void Gets the device current location. | Geolocation

Constructor Detail

Geolocation | () | Constructor

`public function Geolocation()`

Constructor

Method Detail

getCurrentPosition | () | method

`public function getCurrentPosition(onSuccess:Function, onError:Function):void`

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).

Parameters

| `onSuccess:Function`
| `onError:Function`

Mon Sep 5 2016, 07:19 AM -07:00