Skip to main content
Version: v1.0

hmUI.setStatusBarVisible(visible)

This interface is only available on square screen devices, set the status bar visible or not.

For square screen title bar, refer to Screen Adaptation.

Type

(visible: boolean) => void

Parameters

parameterdescriptiontype
visibletrue: show the status bar; false: hide the status barboolean

Code examples

hmUI.setStatusBarVisible(false)