Class Veery
getCurrentLocationAge()
Get the age (in seconds) of the last known Location collected by Veery.
Parameters
none
Returns
long : age in seconds
If -1 : no location available yet
Usage / Example
Location loc = veery.getCurrentLocation(); if (loc!=null) { if (veery.getCurrentLocationAge()<180){ // Less than 3 minutes ago } }
User interaction
none
See also
For realtime refresh of the current location, use requestLocationUpdate.
You can use the function getCurrentLocation to get the last known geolocation.