Added missing clearWithArgs option to the @Cordova decorator

This commit is contained in:
Fabien Duthu 2016-07-31 21:14:45 +02:00
parent 1da35968de
commit 080c5a19e6

View File

@ -332,7 +332,8 @@ export class EstimoteBeacons {
*/ */
@Cordova({ @Cordova({
observable: true, observable: true,
clearFunction: 'stopRangingBeaconsInRegion' clearFunction: 'stopRangingBeaconsInRegion',
clearWithArgs: true
}) })
static startRangingBeaconsInRegion(region: BeaconRegion): Observable<any> { return; } static startRangingBeaconsInRegion(region: BeaconRegion): Observable<any> { return; }
@ -364,7 +365,8 @@ export class EstimoteBeacons {
*/ */
@Cordova({ @Cordova({
observable: true, observable: true,
clearFunction: 'stopRangingSecureBeaconsInRegion' clearFunction: 'stopRangingSecureBeaconsInRegion',
clearWithArgs: true
}) })
static startRangingSecureBeaconsInRegion(region: BeaconRegion): Observable<any> { return; } static startRangingSecureBeaconsInRegion(region: BeaconRegion): Observable<any> { return; }
@ -396,6 +398,7 @@ export class EstimoteBeacons {
@Cordova({ @Cordova({
observable: true, observable: true,
clearFunction: 'stopMonitoringForRegion', clearFunction: 'stopMonitoringForRegion',
clearWithArgs: true,
successIndex: 1, successIndex: 1,
errorIndex: 2 errorIndex: 2
}) })
@ -426,6 +429,7 @@ export class EstimoteBeacons {
@Cordova({ @Cordova({
observable: true, observable: true,
clearFunction: 'stopSecureMonitoringForRegion', clearFunction: 'stopSecureMonitoringForRegion',
clearWithArgs: true,
successIndex: 1, successIndex: 1,
errorIndex: 2 errorIndex: 2
}) })