Package | org.apache.cordova.geolocation |
Class | public class Geolocation |
Inheritance | Geolocation ![]() |
Method | Defined By | ||
---|---|---|---|
Constructor
| Geolocation | ||
getCurrentPosition(onSuccess:Function, onError:Function):void
Gets the device current location. | Geolocation |
Geolocation | () | Constructor |
public function Geolocation()
Constructor
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 |