setTitleFontWeight
The setTitleFontWeight function is used to set the font weight of the mini program page title. By adjusting this value, you can control the thickness of the text displayed in the title bar.
Method signature
copy
setTitleFontWeight(titleFontWeight: Int):GRVStartupParams.BuilderParameters
Parameter | Data Type | Default value | Required | Description |
titleFontWeight | Int | 1 | Yes | Set the font weight of the miniprogram title. Valid values:
|
Sample
copy
val startupParams = GRVStartupParams.createBuilderForApp(context, appId)
.setTitleFontWeight(2)
.build()
Griver.openApp(startupParams,null)User experience
| Screenshot |
1 |
|
2 |
|
3 |
|


