mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
fix(background-geolocation): configure returns an observable
Configure no longer returns a promise or takes callbacks as parameters.
This commit is contained in:
parent
9a733c3b4a
commit
961cff185d
@ -1,4 +1,5 @@
|
||||
import {Cordova, Plugin} from './plugin';
|
||||
import { Cordova, Plugin } from './plugin';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
declare var window;
|
||||
|
||||
@ -363,12 +364,13 @@ export class BackgroundGeolocation {
|
||||
* Configure the plugin.
|
||||
*
|
||||
* @param options {BackgroundGeolocationConfig} options An object of type Config
|
||||
* @return {Promise<any>}
|
||||
* @return {Observable<any>}
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
callbackOrder: 'reverse',
|
||||
observable: true
|
||||
})
|
||||
static configure(options: BackgroundGeolocationConfig): Promise<any> { return; }
|
||||
static configure(options: BackgroundGeolocationConfig): Observable<any> { return; }
|
||||
|
||||
/**
|
||||
* Turn ON the background-geolocation system.
|
||||
|
Loading…
Reference in New Issue
Block a user