mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
namespaces removed (except Application)
This commit is contained in:
@@ -1,44 +1,40 @@
|
||||
import types = require("Location/location_types");
|
||||
|
||||
export module tk {
|
||||
export module location {
|
||||
export class LocationManager {
|
||||
export class LocationManager {
|
||||
|
||||
public isLocationEnabled(): boolean {
|
||||
// TODO add proper implementation
|
||||
return true;
|
||||
}
|
||||
|
||||
constructor() {
|
||||
|
||||
}
|
||||
|
||||
// in meters
|
||||
// we might need some predefined values here like 'any' and 'high'
|
||||
public desiredAccuracy: number;
|
||||
|
||||
// listeners
|
||||
public locationChangeListener: types.tk.location.LocationChangeListener;
|
||||
|
||||
// monitoring
|
||||
|
||||
public startLocationMonitoring() {
|
||||
|
||||
}
|
||||
|
||||
public stopLocationMonitoring() {
|
||||
|
||||
}
|
||||
|
||||
// other
|
||||
|
||||
public getLastKnownLocation(): types.tk.location.LocationPoint {
|
||||
return null;
|
||||
}
|
||||
|
||||
public distanceInMeters(loc1: types.tk.location.LocationPoint, loc2: types.tk.location.LocationPoint): number {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
public isLocationEnabled(): boolean {
|
||||
// TODO add proper implementation
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
constructor() {
|
||||
|
||||
}
|
||||
|
||||
// in meters
|
||||
// we might need some predefined values here like 'any' and 'high'
|
||||
public desiredAccuracy: number;
|
||||
|
||||
// listeners
|
||||
public locationChangeListener: types.LocationChangeListener;
|
||||
|
||||
// monitoring
|
||||
|
||||
public startLocationMonitoring() {
|
||||
|
||||
}
|
||||
|
||||
public stopLocationMonitoring() {
|
||||
|
||||
}
|
||||
|
||||
// other
|
||||
|
||||
public getLastKnownLocation(): types.LocationPoint {
|
||||
return null;
|
||||
}
|
||||
|
||||
public distanceInMeters(loc1: types.LocationPoint, loc2: types.LocationPoint): number {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user