Class ShadowInsetsController

java.lang.Object
org.robolectric.shadows.ShadowInsetsController

@Implements(value=android.view.InsetsController.class, minSdk=30, isInAndroidSdk=false) @RequiresApi(30) public class ShadowInsetsController extends Object
Intercepts calls to [InsetsController] to monitor system bars functionality (hide/show).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    hide(int types)
    Intercepts calls to [InsetsController.hide] to detect requested changes to the system status/nav bar visibility.
    protected void
    show(int types)
    Intercepts calls to [InsetsController.show] to detect requested changes to the system status/nav bar visibility.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShadowInsetsController

      public ShadowInsetsController()
  • Method Details

    • show

      @Implementation protected void show(int types)
      Intercepts calls to [InsetsController.show] to detect requested changes to the system status/nav bar visibility.
    • hide

      @Implementation public void hide(int types)
      Intercepts calls to [InsetsController.hide] to detect requested changes to the system status/nav bar visibility.