setDefaultTitle

The setDefaultTitle function is used to set the default title of the page. It is mainly used to display the title before the real, meaningful title text is received.

Method signature

copy
setDefaultTitle(defaultTitle: String):GRVStartupParams.Builder

Parameters

Parameter

Data Type

Default value

Required

Description

defaultTitle

String

""

Yes

This parameter is used to set the default title of the page.

When this parameter is configured in theapp.json or page.jsonfile, its value will be overwritten by the real, meaningful title text.

Sample

copy
val startupParams = GRVStartupParams.createBuilderForApp(context, appId)
    .setDefaultTitle("Test Title")
    .build()
Griver.openApp(startupParams,null)

User experience

Value

Screenshot

"Test Title"

image.png