For the android sticky `SYSTEM_UI_FLAG_IMMERSIVE_STICKY` and non-sticky `SYSTEM_UI_FLAG_IMMERSIVE` immersive mode. A mode that allows the developer to manage a full screen state of the app, while allowing the user to swipe and view system and nav bars.
To implement immersion mode with the SYSTEM_UI_FLAG_HIDE_NAVIGATION
or `SYSTEM_UI_FLAG_FULLSCREEN must be used.
Non-sticky mode is recommended for apps where users need regular access to app system and nav bars.
With non sticky immersion, when the system and/or nav bars are swiped and made visible, the flags for SYSTEM_UI_FLAG_HIDE_NAVIGATION
and SYSTEM_UI_FLAG_FULLSCREEN
are cleared. To re-implement the immersion mode there needs to be an OnSystemUiVisibilityChangeListener
Sticky immersion is suitable apps where the user does not need access to system or nav bars for a sustained duration, and they may in fact be an impediment to the app, for example game apps.
In this case the flags are not cleared and the view from full screen is only transient, as immersion is reinstated. There is no need for a OnSystemUiVisibilityChangeListener
, as this is not regarded as a change in the view state.
Information is taken from https://developer.android.com/training/system-ui/immersive.html