‚Äč
com.mobiledgex.matchingengine.util.MeLocation Class Reference

Public Member Functions

 MeLocation (MatchingEngine matchingEngine)
 
android.location.Location getBlocking (final Context context, long timeoutInMilliseconds) throws IllegalArgumentException, IllegalStateException, SecurityException, InterruptedException, ExecutionException
 

Detailed Description

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.

Member Function Documentation

◆ getBlocking()

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.

Parameters
contextcontext for activity.