You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
implement LocationManager and orientation sensor using libportal
This commit is contained in:
27
src/api-impl/android/location/Location.java
Normal file
27
src/api-impl/android/location/Location.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package android.location;
|
||||
|
||||
public class Location {
|
||||
|
||||
private double latitude;
|
||||
private double longitude;
|
||||
private double bearing;
|
||||
|
||||
public Location (double latitude, double longitude, double bearing) {
|
||||
this.latitude = latitude;
|
||||
this.longitude = longitude;
|
||||
this.bearing = bearing;
|
||||
}
|
||||
|
||||
public double getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public double getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public double getBearing() {
|
||||
return bearing;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user