Glitch9 Documentation
Glitch9 Inc.OpenAINative Plugins
  • Glitch9 Inc
    • Welcome to Glitch9 Inc.
  • Unity Toolkits
    • AI Development Kit
    • Smart Localization
      • Getting Started
    • Commit Gen
      • Getting Started
    • Serialization Saver
      • Getting Started
  • Native Plugins for Unity
    • Native Media Player
    • Status & Navigation Bar
      • Getting Started
      • Public Methods
      • Public Variables
      • Update Logs
    • Lock Task
      • API Reference
    • Background Music Looper
  • Support
    • How to setup Newtonsoft.Json
    • How to setup UniTask
Powered by GitBook
On this page
  • How to Initiate
  • Get Status Bar Height
  • Get Navigation Bar Height
  • Get Android SDK Version
  1. Native Plugins for Unity
  2. Status & Navigation Bar

Public Methods

How to Initiate

Initiate the plugin with default states.

WindowIncetsController.cs
WindowIncetsController.Init(
bool _statusBarEnabled, bool _navigationBarEnabled, 
bool _lightStatusBarEnabled, bool _lightNavigationBarEnabled, 
bool _contentAppearBehindTheBars, bool _dimTheSystemBars, bool _forceResetFlags,
Color _statusBarColor, Color _navigationBarColor, long _updateDelay, 
int _customStatusBarHeight, int _customNavigationBarHeight)

You can automatically initiate the plugin with WindowIncetsControllerManager editor inspector. Please take a look at Quick Start for more details.

Get Status Bar Height

Retrieve the status bar height from the native side.

int WindowIncetsController.GetStatusBarHeight()

Get Navigation Bar Height

Retrieve the navigation bar height from the native side.

int WindowIncetsController.GetNavigationBarHeight()

Get Android SDK Version

Retrieve the SDK version of the current device from the native side.

int WindowIncetsController.GetAndroidSDKVersion()
PreviousGetting StartedNextPublic Variables

Last updated 2 years ago