awesome-cordova-plugins/dist/plugins/geolocation.d.ts

22 lines
456 B
TypeScript
Raw Normal View History

2016-02-06 05:06:03 +08:00
/**
* Get geolocation data.
*
* @usage
* ```js
* Geolocation.getCurrentPosition().then((resp) => {
* //resp.coords.latitude
* //resp.coords.longitude
* })
*
* let watch = Geolocation.watchPosition();
* watch.source.subscribe((data) => {
* //data.coords.latitude
* //data.coords.longitude
* })
* ```
*/
2015-12-01 03:27:25 +08:00
export declare class Geolocation {
2015-12-01 02:34:54 +08:00
static getCurrentPosition(options: any): void;
static watchPosition(options: any): void;
2015-11-30 09:54:45 +08:00
}