mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
refactor(backgroundGeoLocation):
This commit is contained in:
parent
c36c210e66
commit
b8afd70a42
@ -1,5 +1,6 @@
|
|||||||
import {Plugin, Cordova} from './plugin';
|
import { Cordova, Plugin } from './plugin';
|
||||||
import {Observable} from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
|
|
||||||
|
|
||||||
declare var window;
|
declare var window;
|
||||||
|
|
||||||
@ -177,7 +178,7 @@ export interface Config {
|
|||||||
* debug: true, // enable this hear sounds for background-geolocation life-cycle.
|
* debug: true, // enable this hear sounds for background-geolocation life-cycle.
|
||||||
* stopOnTerminate: false, // enable this to clear background location settings when the app terminates
|
* stopOnTerminate: false, // enable this to clear background location settings when the app terminates
|
||||||
* };
|
* };
|
||||||
*
|
*
|
||||||
* BackgroundGeolocation.configure(config)
|
* BackgroundGeolocation.configure(config)
|
||||||
* .then((location) => {
|
* .then((location) => {
|
||||||
* console.log('[js] BackgroundGeolocation callback: ' + location.latitude + ',' + location.longitude);
|
* console.log('[js] BackgroundGeolocation callback: ' + location.latitude + ',' + location.longitude);
|
||||||
|
Loading…
Reference in New Issue
Block a user