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;
|
var defaultGetLocationTimeout = 20000;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
export class Location implements defModule.Location {
|
export class Location implements defModule.Location {
|
||||||
public latitude: number;
|
public latitude: number;
|
||||||
public longitude: number;
|
public longitude: number;
|
||||||
@@ -88,4 +89,4 @@ export var getLocation = function (options?: defModule.Options): Promise<defModu
|
|||||||
}, options.timeout || defaultGetLocationTimeout);
|
}, options.timeout || defaultGetLocationTimeout);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import utils = require("utils/utils");
|
|||||||
|
|
||||||
global.moduleMerge(common, exports);
|
global.moduleMerge(common, exports);
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
export class LocationManager implements locationModule.LocationManager {
|
export class LocationManager implements locationModule.LocationManager {
|
||||||
get android(): locationModule.AndroidLocationManager {
|
get android(): locationModule.AndroidLocationManager {
|
||||||
return this.androidLocationManager;
|
return this.androidLocationManager;
|
||||||
@@ -193,6 +194,7 @@ export class LocationManager implements locationModule.LocationManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
export class AndroidLocationManager implements locationModule.AndroidLocationManager {
|
export class AndroidLocationManager implements locationModule.AndroidLocationManager {
|
||||||
private _manager: android.location.LocationManager;
|
private _manager: android.location.LocationManager;
|
||||||
private _minimumUpdateTime: number;
|
private _minimumUpdateTime: number;
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ class LocationListenerImpl extends NSObject implements CLLocationManagerDelegate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
export class LocationManager implements locationModule.LocationManager {
|
export class LocationManager implements locationModule.LocationManager {
|
||||||
get android(): locationModule.AndroidLocationManager {
|
get android(): locationModule.AndroidLocationManager {
|
||||||
return undefined;
|
return undefined;
|
||||||
@@ -165,6 +166,7 @@ export class LocationManager implements locationModule.LocationManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
|
@Deprecated
|
||||||
export class iOSLocationManager implements locationModule.iOSLocationManager {
|
export class iOSLocationManager implements locationModule.iOSLocationManager {
|
||||||
private _manager: CLLocationManager;
|
private _manager: CLLocationManager;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user