English
isShowTitleBar
About 231 wordsLess than 1 minute
2025-12-16
Adapter for configuring whether the title bar is shown
Parameters
No parameters
Return Value
| Parameter Name | Type | Description |
|---|---|---|
| Boolean | Boolean | true means show the title bar, false means hide the title bar |
Usage Example
isShowTitleBar() {
// Return whether the title bar should be shown according to business needs
return true; // or false
}Notes
This function is used to control whether the title bar is displayed. After changing it, you need to re-enter twice for it to take effect.
Attention
- Return
true: show the title bar - Return
false: hide the title bar - The setting takes effect only after re-entering the page twice
FAQ
Q: Why is the title bar hidden by default?
A: When H5 is integrated into an app or browser, most hosts provide their own system title bar and it usually cannot be hidden. Therefore, H5 hides its own title bar by default. Only when the host app has no title bar can you manually show it through the JS plugin hook isShowTitleBar.
Q: Why is the title bar still not shown after configuring the JS plugin?
A: Please check:
- Whether the JS plugin is running correctly
- Whether the H5 URL contains the
isShowTitleBarparameter - Whether the home page forcibly hides the title bar
If the issue still exists after checking the above, contact Fxiaoke technical support.
