fix(background-geolocation): configure returns an observable

Configure no longer returns a promise or takes callbacks as parameters.
This commit is contained in:
Ibby 2017-03-18 18:33:01 -04:00
parent 9a733c3b4a
commit 961cff185d

View File

@ -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.