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.Builder

Parameters

Parameter

Data Type

Default value

Required

Description

titleFontWeight

Int

1

Yes

Set the font weight of the miniprogram title.

Valid values:

  • 1: Bold
  • 2: Italic
  • 3: Bold & Italic

Sample

copy
val startupParams = GRVStartupParams.createBuilderForApp(context, appId)
    .setTitleFontWeight(2)
    .build()
Griver.openApp(startupParams,null)

User experience

setTitleFontWeight value

Screenshot

1

image.png

2

image.png

3

image.png