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 for
NetworkScoreManager
.-
Constructor Summary
Constructors Constructor Description ShadowNetworkScoreManager()
-
Method Summary
Modifier and Type Method Description protected void
disableScoring()
String
getActiveScorerPackage()
boolean
isScoringEnabled()
Whether scoring is enabled.boolean
setActiveScorer(String packageName)
-
Constructor Details
-
ShadowNetworkScoreManager
public ShadowNetworkScoreManager()
-
-
Method Details
-
getActiveScorerPackage
-
setActiveScorer
-
disableScoring
- See Also:
isScoringEnabled()
-
isScoringEnabled
public boolean isScoringEnabled()Whether scoring is enabled.
-