refactor(ibeacon):

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

View File

@ -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.