mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Location module deprecated.
This commit is contained in:
@@ -4,6 +4,7 @@ import defModule = require("location");
|
||||
|
||||
var defaultGetLocationTimeout = 20000;
|
||||
|
||||
@Deprecated
|
||||
export class Location implements defModule.Location {
|
||||
public latitude: number;
|
||||
public longitude: number;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user