Class ShadowLocationManager.RoboLocationRequest

java.lang.Object
org.robolectric.shadows.ShadowLocationManager.RoboLocationRequest
Enclosing class:
ShadowLocationManager

public static final class ShadowLocationManager.RoboLocationRequest extends Object
LocationRequest doesn't exist prior to Kitkat, and is not public prior to S, so a new class is required to represent it prior to those platforms.
  • Constructor Details

    • RoboLocationRequest

      public RoboLocationRequest(LocationRequest locationRequest)
    • RoboLocationRequest

      public RoboLocationRequest(String provider, long intervalMillis, float minUpdateDistanceMeters, boolean singleShot)
  • Method Details

    • getLocationRequest

      public LocationRequest getLocationRequest()
    • getIntervalMillis

      public long getIntervalMillis()
    • getMinUpdateDistanceMeters

      public float getMinUpdateDistanceMeters()
    • isSingleShot

      public boolean isSingleShot()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object