Package org.robolectric.shadows
Class ShadowNetworkScoreManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowNetworkScoreManager
-
@Implements(value=android.net.NetworkScoreManager.class, isInAndroidSdk=false, minSdk=21) public class ShadowNetworkScoreManager extends Object
Provides testing APIs forNetworkScoreManager
.
-
-
Constructor Summary
Constructors Constructor Description ShadowNetworkScoreManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
disableScoring()
String
getActiveScorerPackage()
boolean
isScoringEnabled()
Whether scoring is enabled.boolean
setActiveScorer(String packageName)
-
-
-
Method Detail
-
getActiveScorerPackage
@Implementation public String getActiveScorerPackage()
-
setActiveScorer
@Implementation public boolean setActiveScorer(String packageName)
-
disableScoring
@Implementation protected void disableScoring()
- See Also:
isScoringEnabled()
-
isScoringEnabled
public boolean isScoringEnabled()
Whether scoring is enabled.
-
-