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 Details

    • ShadowSupervisionManager

      public ShadowSupervisionManager()
  • Method Details

    • isSupervisionEnabledForUser

      @Implementation protected boolean isSupervisionEnabledForUser(int userId)
    • setSupervisionEnabledForUser

      @Implementation protected void setSupervisionEnabledForUser(int userId, boolean enabled)
    • createConfirmSupervisionCredentialsIntent

      @Implementation protected Intent 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.