mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
fix(ibeacon): minor fixes
* Order of major/minor parameters for BeaconRegion creater fixed * Property PluginResult.error added * comment for BeaconRegion.minor fixed
This commit is contained in:
parent
2fe37c461c
commit
b5a2ffc6a5
@ -65,7 +65,7 @@ export interface BeaconRegion {
|
|||||||
major?: number;
|
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.
|
* the plugin will treat it as a wildcard.
|
||||||
*/
|
*/
|
||||||
minor?: number;
|
minor?: number;
|
||||||
@ -125,6 +125,11 @@ export interface PluginResult {
|
|||||||
* The state of the phone in relation to the region. Inside/outside for example.
|
* The state of the phone in relation to the region. Inside/outside for example.
|
||||||
*/
|
*/
|
||||||
state: 'CLRegionStateInside' | 'CLRegionStateOutside';
|
state: 'CLRegionStateInside' | 'CLRegionStateOutside';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Error message, used only with monitoringDidFailForRegionWithError delegate.
|
||||||
|
*/
|
||||||
|
error: string;
|
||||||
}
|
}
|
||||||
export interface Delegate {
|
export interface Delegate {
|
||||||
/**
|
/**
|
||||||
@ -372,8 +377,8 @@ export class IBeacon {
|
|||||||
*
|
*
|
||||||
* @return Returns the BeaconRegion that was created
|
* @return Returns the BeaconRegion that was created
|
||||||
*/
|
*/
|
||||||
static BeaconRegion(identifer: string, uuid: string, minor?: number, major?: number, notifyEntryStateOnDisplay?: boolean): BeaconRegion {
|
static BeaconRegion(identifer: string, uuid: string, major?: number, minor?: number, notifyEntryStateOnDisplay?: boolean): BeaconRegion {
|
||||||
return new cordova.plugins.locationManager.BeaconRegion(identifer, uuid, minor, major, notifyEntryStateOnDisplay);
|
return new cordova.plugins.locationManager.BeaconRegion(identifer, uuid, major, minor, notifyEntryStateOnDisplay);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user