Package org.robolectric.shadows
Class ShadowLocationManager.ProviderProperties
- java.lang.Object
-
- org.robolectric.shadows.ShadowLocationManager.ProviderProperties
-
- Enclosing class:
- ShadowLocationManager
public static class ShadowLocationManager.ProviderProperties extends Object
ProviderProperties is not public prior to S, so a new class is required to represent it prior to that platform.
-
-
Constructor Summary
Constructors Constructor Description ProviderProperties(boolean requiresNetwork, boolean requiresSatellite, boolean requiresCell, boolean hasMonetaryCost, boolean supportsAltitude, boolean supportsSpeed, boolean supportsBearing, int powerRequirement, int accuracy)
ProviderProperties(Criteria criteria)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAccuracy()
int
getPowerUsage()
boolean
hasAltitudeSupport()
boolean
hasBearingSupport()
boolean
hasNetworkRequirement()
boolean
hasSatelliteRequirement()
boolean
hasSpeedSupport()
boolean
isHasMonetaryCost()
boolean
isRequiresCell()
-
-
-
Constructor Detail
-
ProviderProperties
public ProviderProperties(boolean requiresNetwork, boolean requiresSatellite, boolean requiresCell, boolean hasMonetaryCost, boolean supportsAltitude, boolean supportsSpeed, boolean supportsBearing, int powerRequirement, int accuracy)
-
ProviderProperties
public ProviderProperties(Criteria criteria)
-
-
Method Detail
-
hasNetworkRequirement
public boolean hasNetworkRequirement()
-
hasSatelliteRequirement
public boolean hasSatelliteRequirement()
-
isRequiresCell
public boolean isRequiresCell()
-
isHasMonetaryCost
public boolean isHasMonetaryCost()
-
hasAltitudeSupport
public boolean hasAltitudeSupport()
-
hasSpeedSupport
public boolean hasSpeedSupport()
-
hasBearingSupport
public boolean hasBearingSupport()
-
getPowerUsage
public int getPowerUsage()
-
getAccuracy
public int getAccuracy()
-
-