Class ShadowInsetsController

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

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

    Constructors 
    Constructor Description
    ShadowInsetsController()  
  • 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

  • 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.