Public Variables

Status Bar

Set or get status bar state. Set this True to enable the status bar.

bool WindowIncetsController.StatusBar
// WindowIncetsController.StatusBar = true; 
// (enables the status bar)

Set or get navigation bar state. Set this True to enable the navigation bar.

bool WindowIncetsController.NavigationBar 
// WindowIncetsController.NavigationBar = true;
// (enables the navigation bar)

Light Status Bar

Set or get navigation bar light mode state. Set this True to enable light mode (darkens the items on the status bar)

bool WindowIncetsController.LightStatusBar
// WindowIncetsController.LightStatusBar = true;
// (darkens the items on the status bar)

Light Navigation Bar

Set or get navigation bar light mode state. Set this True to enable light mode (darkens the items on the navigation bar)

bool WindowIncetsController.LightNavigationBar  
// WindowIncetsController.LightNavigationBar = true; 
// (darkens the items on the navigation bar)

Status Bar Color

Set or get color of the status bar.

Color WindowIncetsController.StatusBarColor
// WindowIncetsController.StatusBarColor = new Color(0, 0, 0, 0); 
// (makes the status bar transparent)

Set or get color of the navigation bar.

Color WindowIncetsController.NavigationBarColor
// WindowIncetsController.NavigationBarColor = Color.Red;
// (makes the navigation bar red)

Content Appear Behind The Bars

Make contents appear behind the bars. At least one Android Safe Area component (AndroidSafeArea.cs) is required in your scene. Add the component to your RectTransform which you use as your screen's safe area. You can also have multiple Android Safe Area components.

bool WindowIncetsController.ContentAppearBehindTheBars
// WindowIncetsController.ContentAppearBehindTheBars = true;
// (enables the safe areas)

Dim The System Bars (SDK 29 or lower)

Use the low-profile system bar mode. This function is deprecated on SDK30.

bool WindowIncetsController.DimTheSystemBars
// WindowIncetsController.DimTheSystemBars = true;
// (enables the low-profile mode)

Force Reset Flags (SDK 30 or higher)

Some devices with SDK higher than 29 still use flags to control the system bars. Setting this value true will make devices with SDK30+ reset the flags.

bool WindowIncetsController.ForceResetFlags
// WindowIncetsController.ForceResetFlags = true;
// (SDK30+ devices reset flags)

Last updated