Added GPS Status to the service so activities can access to the GPS Status.

This commit is contained in:
Román
2020-07-17 15:48:53 +02:00
committed by Román Martínez
parent 18546fd3cc
commit e2b741dd08
11 changed files with 348 additions and 6 deletions
@@ -56,15 +56,18 @@ public class HandlerServer {
serviceExecutor.execute(() -> service.newTrackPoint(trackPoint, recordingGpsAccuracy));
}
void sendGpsStatus(GpsStatusValue gpsStatusValue) {
service.newGpsStatus(gpsStatusValue);
}
public interface HandlerServerInterface {
void newTrackPoint(TrackPoint trackPoint, int gpsAccuracy);
void newGpsStatus(GpsStatusValue gpsStatusValue);
}
public interface Handler {
void onStart(Context context);
void onStop(Context context);
void onSharedPreferenceChanged(Context context, SharedPreferences preferences, String key);
}
}