set Status Bar Gone
Hides the StatusBar.
Uses WindowInsetsController on API 30+ and FLAG_FULLSCREEN on older versions.
StatusBar를 숨깁니다.
API 30+에서는 WindowInsetsController를 사용하고 이전 버전에서는 FLAG_FULLSCREEN을 사용합니다.
Important / 주의사항:
Rapidly toggling visibility (calling setStatusBarVisible()/setStatusBarGone() multiple times within 1500ms) may cause screen flickering on certain Android versions (e.g., Android 12).
Recommended to debounce calls or add delay between visibility changes if flickering occurs.
짧은 시간(1500ms 이내)에 가시성을 여러 번 토글하는 경우 (setStatusBarVisible()/setStatusBarGone() 반복 호출) 특정 Android 버전(예: Android 12)에서 화면 깜빡임이 발생할 수 있습니다.
깜빡임이 발생하는 경우 호출을 디바운스하거나 가시성 변경 사이에 지연을 추가하는 것을 권장합니다.