Show(Type)
Displays a set of windows that generate insets on screen.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Android
- Assembly: UnityEngine.AndroidJNIModule
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.
Additional Resources: AndroidApplication.onWindowInsetsChanged, AndroidApplication.currentWindowInsets, Type.
The following code example demonstrates how to display both 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); }}