Show
Displays a set of windows that generate insets on screen.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Android
- Assembly: UnityEngine.AndroidJNIModule
Show(Type)
Displays a set of windows that generate insets on screen.
public void Show(AndroidWindowInsets.Type type)
Parameters
Remarks
Use this method to display the system bars, such as the status and navigation bars at runtime.
Examples
using UnityEngine;using UnityEngine.Android;public class Controller : MonoBehaviour{ public void Start() { AndroidApplication.currentWindowInsets.Show(AndroidWindowInsets.Type.NavigationBars | AndroidWindowInsets.Type.StatusBars); }}
Show(Type, Type)
Shows the specified insets and sets the overlapping mask atomically in a single UI thread dispatch.
public void Show(AndroidWindowInsets.Type type, AndroidWindowInsets.Type overlapping)
Parameters
Remarks
The parameter replaces the entire overlapping mask, it does not accumulate with previous values. For example, calling followed by leaves only NavigationBars as overlapping.
overlappingShow(StatusBars, StatusBars)Show(NavigationBars, NavigationBars)Examples
using UnityEngine;using UnityEngine.Android;public class Controller : MonoBehaviour{ public void Start() { // Show both bars and make them overlap with the application windw. AndroidApplication.currentWindowInsets.Show( AndroidWindowInsets.Type.StatusBars | AndroidWindowInsets.Type.NavigationBars, AndroidWindowInsets.Type.StatusBars | AndroidWindowInsets.Type.NavigationBars); }}