Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

AndroidWindowInsets.Hide

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

Declaration

public void Hide(Type type);

Parameters

Parameter Description
type The set of window insets to hide, as a bitwise combination of Type values.

Description

Hides a set of windows that generate insets.

Use this method to hide the system bars, allowing your application to use the available screen space when in full-screen mode.

This method has no effect on AndroidWindowInsets.Type.CaptionBar, because the system controls the visibility of the caption bar.

Additional resources: AndroidApplication.onWindowInsetsChanged, AndroidApplication.currentWindowInsets, Type

using UnityEngine;
using UnityEngine.Android;

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