setTransparentTtitle
The setTransparentTitle function is used to configure the title bar background mode (e.g. transparent or opaque mode) .
Method signature
copy
setTransparentTitle(@NonNull transparentTitle: GRVStartupParams.TransparentTitle): GRVStartupParams.BuilderParameters
Parameter | Data Type | Default value | Required | Description |
transparentTitle | GRVStartupParams.TransparentTitle | GRVStartupParams.TransparentTitle.NONE | Yes | This parameter is used to configure the the background mode of the title bar. Valid values:
|
Sample
copy
val startupParams = GRVStartupParams.createBuilderForApp(context, appId)
.setTransparentTitle(GRVStartupParams.TransparentTitle.AUTO)
.build()
Griver.openApp(startupParams,null)User experience
Value | Screenshot (Before sliding) | Screenshot (After sliding) |
|
| The background is always transparent.
|
| The background transparency follows the sliding distance.
| |
| The background is always opaque.
|



