Full Screen is a native extension to offer users a true full screen experience in apps for Android. Using Android 4.0+ it’s possible to use true full screen in “lean mode”, which is used by apps like YouTube to expand the app right to the edges of the screen, hiding the status and navigation bars until the user next interacts. This is ideally suited to video or cut-scene content.
In Android 4.4+, however, you can now enter true full screem, fully interactive immersive mode. In this mode, the app will remain in true full screen until the user chooses otherwise; users can swipe down from the top of the screen to temporarily display the system UI. This extension can be used with Starling.
Sample
// Is this ANE supported? AndroidFullScreen.isSupported; // Is immersive mode supported? AndroidFullScreen.isImmersiveModeSupported; // Hide system UI until user interacts AndroidFullScreen.hideSystemUI(); // Show system UI AndroidFullScreen.showSystemUI(); // Extend your app underneath the system UI (Android 4.4+ only) AndroidFullScreen.showUnderSystemUI(); // Hide system UI and keep it hidden (Android 4.4+ only) AndroidFullScreen.immersiveMode(); // Hide system UI until user swipes from top (Android 4.4+ only) AndroidFullScreen.immersiveMode(false); if (!AndroidFullScreen.immersiveMode()) { stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; } if (!AndroidFullScreen.hideSystemUI()) { stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; }