Class ShadowDevicePolicyResourcesManager

java.lang.Object
org.robolectric.shadows.ShadowDevicePolicyResourcesManager

@Implements(value=android.app.admin.DevicePolicyResourcesManager.class, minSdk=33, isInAndroidSdk=false) public class ShadowDevicePolicyResourcesManager extends Object
  • Constructor Details

    • ShadowDevicePolicyResourcesManager

      public ShadowDevicePolicyResourcesManager()
  • Method Details

    • setString

      public void setString(@NonNull String stringId, String value)
      Override string returned by the resource identified by stringId. Reset the override by providing null as the vaNlue.
    • getString

      @Implementation @Nullable protected String getString(@NonNull String stringId, @NonNull Supplier<String> defaultStringLoader)