This section describes how to use and be updated of the current location of the Veery class (Android native).
Depending on how Veery was activated, Veery collects the geolocations and store them into the Cache.
|Veery activate mode||Application status||Battery/Energy status||Geolocation||Historization|
|Veery.FOREGROUND||In foreground||any||Every 5 meters||local Cache only|
|Veery.BACKGROUND||In foreground||any||Every 5 meters||local Cache only|
|Veery.BACKGROUND||In background||Charging/Plugged||Every 5 meters||local Cache only|
|Veery.BACKGROUND||In background||Consuming/Unplugged||Every 100-500 meters or 10 minutes||local Cache only|
|Veery.BACKEND||In foreground||any||Every 5 meters||local Cache and Veery backend (to Sandpiper API and Tern Cloud DB)|
|Veery.BACKEND||In background||Charging/Plugged||Every 5 meters||local Cache and Veery backend|
|Veery.BACKEND||In background||Consuming/Unplugged||Every 100-500 meters or 10 minutes||local Cache and Veery backend|
For current location, Veery.GEOPROFILE act as Veery.BACKEND does.
Background precision may depend on the quality of the network in the area.
Get the last known location of the user.
Get age (in seconds) of the last known location.
Start receiving events (callback) when the location has changed.
Stop receiving events (callback) requested by requestLocationUpdate.
Location update interface could be passed as parameter to the requestLocationUpdate function
Callback triggered every time a new geolocation is known.