Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

Type

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Options for specifying different types of system UI elements that generate window insets.

Use this enum with AndroidWindowInsets.Hide, AndroidWindowInsets.IsVisible, and AndroidWindowInsets.Show methods to retrieve and modify the current state of the status bar, navigation bar, or both at runtime.

using UnityEngine;
using UnityEngine.Android;

public class Controller : MonoBehaviour { public void Start() { AndroidApplication.currentWindowInsets.Show(AndroidWindowInsets.Type.StatusBars | AndroidWindowInsets.Type.NavigationBars); } }

Properties

Property Description
StatusBarsRepresents the area of the screen the system status bar occupies at the top of the screen.
NavigationBarsRepresents the area of the screen the system navigation elements occupy.