refactor(ibeacon):
This commit is contained in:
parent
1eed1a1cb3
commit
f21c49e293
@ -1,6 +1,7 @@
|
|||||||
import {Plugin, Cordova} from './plugin';
|
import { Cordova, Plugin } from './plugin';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
|
|
||||||
|
|
||||||
declare var cordova: any;
|
declare var cordova: any;
|
||||||
|
|
||||||
export interface Beacon {
|
export interface Beacon {
|
||||||
@ -47,6 +48,7 @@ export interface Beacon {
|
|||||||
accuracy: number;
|
accuracy: number;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BeaconRegion {
|
export interface BeaconRegion {
|
||||||
/**
|
/**
|
||||||
* A unique identifier for this region.
|
* A unique identifier for this region.
|
||||||
@ -76,6 +78,7 @@ export interface BeaconRegion {
|
|||||||
*/
|
*/
|
||||||
notifyEntryStateOnDisplay?: boolean;
|
notifyEntryStateOnDisplay?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CircularRegion {
|
export interface CircularRegion {
|
||||||
/**
|
/**
|
||||||
* A unique identifier for this region.
|
* A unique identifier for this region.
|
||||||
@ -97,6 +100,7 @@ export interface CircularRegion {
|
|||||||
*/
|
*/
|
||||||
radius: number;
|
radius: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Region = BeaconRegion | CircularRegion;
|
export type Region = BeaconRegion | CircularRegion;
|
||||||
|
|
||||||
export interface PluginResult {
|
export interface PluginResult {
|
||||||
@ -131,6 +135,7 @@ export interface PluginResult {
|
|||||||
*/
|
*/
|
||||||
error: string;
|
error: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Delegate {
|
export interface Delegate {
|
||||||
/**
|
/**
|
||||||
* An observable that publishes information about the location permission authorization status.
|
* An observable that publishes information about the location permission authorization status.
|
||||||
@ -270,7 +275,6 @@ export interface Delegate {
|
|||||||
})
|
})
|
||||||
export class IBeacon {
|
export class IBeacon {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instances of this class are delegates between the {@link LocationManager} and
|
* Instances of this class are delegates between the {@link LocationManager} and
|
||||||
* the code that consumes the messages generated on in the native layer.
|
* the code that consumes the messages generated on in the native layer.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user