Package org.robolectric.shadows
Class ShadowSupervisionManager
java.lang.Object
org.robolectric.shadows.ShadowSupervisionManager
@Implements(value=android.app.supervision.SupervisionManager.class,
minSdk=36,
isInAndroidSdk=false)
public final class ShadowSupervisionManager
extends Object
Adds Robolectric support for SupervisionManager.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Intentprotected booleanisSupervisionEnabledForUser(int userId) voidoverrideCredentialType(int credentialType) This method overrides the device secure credential type.voidoverrideSupervisionEnabled(boolean enabled) This method overrides the supervision enabled state for the current user.voidoverrideSupervisionEnabledForUser(int userId, boolean enabled) This method overrides the supervision enabled state for a specific user.protected voidsetSupervisionEnabledForUser(int userId, boolean enabled)
-
Constructor Details
-
ShadowSupervisionManager
public ShadowSupervisionManager()
-
-
Method Details
-
isSupervisionEnabledForUser
-
setSupervisionEnabledForUser
-
createConfirmSupervisionCredentialsIntent
-
overrideSupervisionEnabled
public void overrideSupervisionEnabled(boolean enabled) This method overrides the supervision enabled state for the current user. It is public because the setSupervisionEnabledForUser method is not. -
overrideSupervisionEnabledForUser
public void overrideSupervisionEnabledForUser(int userId, boolean enabled) This method overrides the supervision enabled state for a specific user. It is public because the setSupervisionEnabledForUser method is not. -
overrideCredentialType
public void overrideCredentialType(int credentialType) This method overrides the device secure credential type. It is public because setting the device secure credential type is not possible through the SupervisionManager API.
-