Public Member Functions | |
MeLocation (MatchingEngine matchingEngine) | |
android.location.Location | getBlocking (final Context context, long timeoutInMilliseconds) throws IllegalArgumentException, IllegalStateException, SecurityException, InterruptedException, ExecutionException |
Simple util class for last known location. This does NOT get continuous location, which is owned by the application lifecycle, and can use the full LocationCallback object.
android.location.Location com.mobiledgex.matchingengine.util.MeLocation.getBlocking | ( | final Context | context, |
long | timeoutInMilliseconds | ||
) | throws IllegalArgumentException, IllegalStateException, SecurityException, InterruptedException, ExecutionException |
A utility blocking call to location services, otherwise, use standard asynchronous location APIs. Location Access Permissions must be enabled.
context | context for activity. |