Skip to content

Commit

Permalink
fix(ibeacon): minor fixes
Browse files Browse the repository at this point in the history
* Order of major/minor parameters for BeaconRegion creater fixed

* Property PluginResult.error added

* comment for BeaconRegion.minor fixed
  • Loading branch information
Ritzlgrmft authored and ihadeed committed Jul 16, 2016
1 parent 2fe37c4 commit b5a2ffc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/plugins/ibeacon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface BeaconRegion {
major?: number;

/**
* The beacon's major identifier number. Optional, of nothing is supplied
* The beacon's minor identifier number. Optional, of nothing is supplied
* the plugin will treat it as a wildcard.
*/
minor?: number;
Expand Down Expand Up @@ -125,6 +125,11 @@ export interface PluginResult {
* The state of the phone in relation to the region. Inside/outside for example.
*/
state: 'CLRegionStateInside' | 'CLRegionStateOutside';

/**
* Error message, used only with monitoringDidFailForRegionWithError delegate.
*/
error: string;
}
export interface Delegate {
/**
Expand Down Expand Up @@ -372,8 +377,8 @@ export class IBeacon {
*
* @return Returns the BeaconRegion that was created
*/
static BeaconRegion(identifer: string, uuid: string, minor?: number, major?: number, notifyEntryStateOnDisplay?: boolean): BeaconRegion {
return new cordova.plugins.locationManager.BeaconRegion(identifer, uuid, minor, major, notifyEntryStateOnDisplay);
static BeaconRegion(identifer: string, uuid: string, major?: number, minor?: number, notifyEntryStateOnDisplay?: boolean): BeaconRegion {
return new cordova.plugins.locationManager.BeaconRegion(identifer, uuid, major, minor, notifyEntryStateOnDisplay);
}

/**
Expand Down

0 comments on commit b5a2ffc

Please sign in to comment.