fix(background-geolocation): watchLocationMode returns observable (#2547)

* fix(background-geolocation): watchLocationMode returns observable

* fix(package): rm version change
This commit is contained in:
Frank Königstein 2018-06-14 11:36:02 +02:00 committed by Daniel Sogl
parent dd769b0226
commit 3f8a6f2425

View File

@ -459,12 +459,13 @@ export class BackgroundGeolocation extends IonicNativePlugin {
* Method can be used to detect user changes in location services settings. * Method can be used to detect user changes in location services settings.
* If user enable or disable location services then success callback will be executed. * If user enable or disable location services then success callback will be executed.
* In case or error (SettingNotFoundException) fail callback will be executed. * In case or error (SettingNotFoundException) fail callback will be executed.
* @returns {Promise<boolean>} * @returns {Observable<number>}
*/ */
@Cordova({ @Cordova({
platforms: ['Android'] platforms: ['Android'],
observable: true
}) })
watchLocationMode(): Promise<boolean> { return; } watchLocationMode(): Observable<number> { return; }
/** /**
* Stop watching for location mode changes. * Stop watching for location mode changes.