Skip to content

Commit

Permalink
Updated to version 3.2.1 with some documentation fixes reflecting the…
Browse files Browse the repository at this point in the history
… breaking changes from 3.2
  • Loading branch information
mrtree1 committed Nov 21, 2014
1 parent d507fd8 commit 9daf1d1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.unarin.cordova.beacon" version="3.1.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="com.unarin.cordova.beacon" version="3.2.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">

<name>Proximity Beacon Plugin</name>
<description>Proximity Beacon Monitoring and Transmission Plugin (supporting iBeacons)</description>
Expand Down
17 changes: 9 additions & 8 deletions www/Delegate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
*/
Expand Down

0 comments on commit 9daf1d1

Please sign in to comment.