refactor(ibeacon):

This commit is contained in:
Guille 2016-07-17 19:55:18 +02:00
parent 1eed1a1cb3
commit f21c49e293

View File

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