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
parameter | description | type |
---|---|---|
title | Status bar display text | string |
Code example
const title = 'Mini Program Title'
hmUI.updateStatusBarTitle(title)