22 lines
456 B
TypeScript
Raw Normal View History

2016-02-05 15:06:03 -06: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-11-30 13:27:25 -06:00
export declare class Geolocation {
2015-11-30 12:34:54 -06:00
static getCurrentPosition(options: any): void;
static watchPosition(options: any): void;
2015-11-29 19:54:45 -06:00
}