Class LocationRequest

java.lang.Object
com.arubanetworks.meridian.location.LocationRequest

public class LocationRequest extends Object
LocationRequest handles getting the current location of the device for a one time use.
  • Field Details

  • Method Details

    • cancel

      public void cancel()
      Cancels this request.
    • isRunning

      public boolean isRunning()
      Returns true if this request is still running.
    • requestCurrentLocation

      public static LocationRequest requestCurrentLocation(android.content.Context context, EditorKey appKey, LocationRequest.LocationRequestListener responseListener)
      Builds and starts a LocationRequest with the given parameters.
    • requestCurrentLocation

      public static LocationRequest requestCurrentLocation(android.content.Context context, EditorKey appKey, LocationRequest.LocationRequestListener responseListener, long timeOutInMilliseconds)
      Builds and starts a LocationRequest with the given parameters.
    • requestCurrentLocation

      public static LocationRequest requestCurrentLocation(@NonNull android.content.Context context, @NonNull EditorKey appKey, @NonNull LocationRequest.LocationRequestListener responseListener, long timeOutInMilliseconds, long maxAgeInMilliseconds)
      Builds and starts a LocationRequest with the given parameters.