public static float GetStatusBarHeight(bool force = false)
        {
            if (s_cachedStatusBarHeight < 0 || force)
            {
#if UNITY_IPHONE && !UNITY_EDITOR
                s_cachedStatusBarHeight = _GetStatusBarHeight();
#elif UNITY_ANDROID && UNITY_2019_1_OR_NEWER && !UNITY_EDITOR
                var activity = AndroidThemeNativeUtils.GetActivity();
                s_cachedStatusBarHeight = AndroidThemeNativeUtils.GetStatusBarHeight(activity);
#else
                s_cachedStatusBarHeight = 0;
#endif
            }
            return(s_cachedStatusBarHeight);
        }
        public static bool IsStatusBarActiveWithLayoutStable(bool force = false)
        {
            if (s_cachedIsStatusBarActive == null || force)
            {
#if UNITY_IPHONE && !UNITY_EDITOR
                s_cachedIsStatusBarActive = _IsIOSStatusBarActive();
#elif UNITY_ANDROID && !UNITY_EDITOR
                var activity = AndroidThemeNativeUtils.GetActivity();
                var window   = AndroidThemeNativeUtils.GetWindow(activity);

                s_cachedIsStatusBarActive = !Screen.fullScreen && AndroidThemeNativeUtils.IsStatusBarActive(window) && AndroidThemeNativeUtils.IsViewBehindBars(window);
#else
                s_cachedIsStatusBarActive = false;
#endif
            }
            return(s_cachedIsStatusBarActive != null ? s_cachedIsStatusBarActive.Value : false);
        }