Skip to content

Commit

Permalink
fix(background-geolocation): configure returns an observable
Browse files Browse the repository at this point in the history
Configure no longer returns a promise or takes callbacks as parameters.
  • Loading branch information
ihadeed committed Mar 18, 2017
1 parent 9a733c3 commit 961cff1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/plugins/background-geolocation.ts
@@ -1,4 +1,5 @@
import {Cordova, Plugin} from './plugin';
import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable';

declare var window;

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 961cff1

Please sign in to comment.