Package org.robolectric.shadows
Class ShadowRestrictionsManager
java.lang.Object
org.robolectric.shadows.ShadowRestrictionsManager
@Implements(value=android.content.RestrictionsManager.class, minSdk=21) public class ShadowRestrictionsManager extends Object
Shadow of
RestrictionsManager.-
Constructor Summary
Constructors Constructor Description ShadowRestrictionsManager() -
Method Summary
Modifier and Type Method Description protected BundlegetApplicationRestrictions()voidsetApplicationRestrictions(Bundle applicationRestrictions)Sets the application restrictions as returned byRestrictionsManager.getApplicationRestrictions().
-
Constructor Details
-
ShadowRestrictionsManager
public ShadowRestrictionsManager()
-
-
Method Details
-
setApplicationRestrictions
Sets the application restrictions as returned byRestrictionsManager.getApplicationRestrictions(). -
getApplicationRestrictions
- Returns:
- null by default, or the value specified via
setApplicationRestrictions(Bundle)
-