Location module deprecated.

This commit is contained in:
Nedyalko Nikolov
2015-12-10 14:00:35 +02:00
parent 06c164c747
commit cfad91d2a6
3 changed files with 6 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import defModule = require("location");
var defaultGetLocationTimeout = 20000;
@Deprecated
export class Location implements defModule.Location {
public latitude: number;
public longitude: number;

View File

@@ -5,6 +5,7 @@ import utils = require("utils/utils");
global.moduleMerge(common, exports);
@Deprecated
export class LocationManager implements locationModule.LocationManager {
get android(): locationModule.AndroidLocationManager {
return this.androidLocationManager;
@@ -193,6 +194,7 @@ export class LocationManager implements locationModule.LocationManager {
}
}
@Deprecated
export class AndroidLocationManager implements locationModule.AndroidLocationManager {
private _manager: android.location.LocationManager;
private _minimumUpdateTime: number;

View File

@@ -53,6 +53,7 @@ class LocationListenerImpl extends NSObject implements CLLocationManagerDelegate
}
}
@Deprecated
export class LocationManager implements locationModule.LocationManager {
get android(): locationModule.AndroidLocationManager {
return undefined;
@@ -165,6 +166,7 @@ export class LocationManager implements locationModule.LocationManager {
}
/* tslint:disable */
@Deprecated
export class iOSLocationManager implements locationModule.iOSLocationManager {
private _manager: CLLocationManager;