Skip to main content
Version: v1.0

hmUI.updateStatusBarTitle(title)

This interface is only available on square screen devices, set the status bar to display text content.

For square screen title bar, refer to Screen Adaptation.

Type

(title: string) => void

Parameters

parameterdescriptiontype
titleStatus bar display textstring

Code example

const title = 'Mini Program Title'

hmUI.updateStatusBarTitle(title)