From 9daf1d1712292fcb22f20f92356ed52c96534056 Mon Sep 17 00:00:00 2001 From: Tree Date: Fri, 21 Nov 2014 13:25:49 +0000 Subject: [PATCH] Updated to version 3.2.1 with some documentation fixes reflecting the breaking changes from 3.2 --- CHANGELOG.md | 8 ++++++++ plugin.xml | 2 +- www/Delegate.js | 17 +++++++++-------- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1878203..9f770c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,3 +27,11 @@ errors and stopped apps from working after the plugin has been added to the proj and add the plugin again with the cordova cli commands: ```cordova plugin rm org.apache.cordova.ibeacon``` and then ```cordova plugin add com.unarin.cordova.beacon``` to get the latest version. You can have a look at the PhoneGap Build submission [here](https://build.phonegap.com/plugins/986). + +# 3.2.0 + +## Breaking Changes + +* Klass dependency has been removed. Therefore ```cordova.plugins.LocationManager.Delegate``` entity no longer supports +implements and any callbacks mys override the default callbacks directly. See ```ReadMe.md``` for examples of how to use + Delegate since this change diff --git a/plugin.xml b/plugin.xml index b7bece5..73fa310 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - + Proximity Beacon Plugin Proximity Beacon Monitoring and Transmission Plugin (supporting iBeacons) diff --git a/www/Delegate.js b/www/Delegate.js index adc3c46..b7526af 100644 --- a/www/Delegate.js +++ b/www/Delegate.js @@ -27,14 +27,15 @@ var Regions = require('com.unarin.cordova.beacon.Regions'); * * @example * - * var delegate = new cordova.plugins.LocationManager.Delegate.implement({ - * didDetermineStateForRegion: function(region) { - * console.log('didDetermineState:forRegion: ' + JSON.stringify(region)); - * }, - * didStartMonitoringForRegion: function (region) { - * console.log('didStartMonitoringForRegion: ' + JSON.stringify(region)); - * } - * }); + * var delegate = new cordova.plugins.LocationManager.Delegate(); + * + * delegate.didDetermineStateForRegion = function(region) { + * console.log('didDetermineState:forRegion: ' + JSON.stringify(region)); + * }; + * + * delegate.didStartMonitoringForRegion = function (region) { + * console.log('didStartMonitoringForRegion: ' + JSON.stringify(region)); + * } * * @returns {Delegate} An instance of the type {@type Delegate}. */