setBackButtonColor
The setBackButtonColor function is used to specify the back button (e.g. ) color on the title bar.
Method signature
setBackButtonColor(@IntRange(from = 0,to = 255) red: Int,
@IntRange(from = 0,to = 255) green: Int,
@IntRange(from = 0,to = 255) blue: Int,
@IntRange(from = 0,to = 255) alpha: Int):GRVStartupParams.Builder
Parameters
The following parameters specify the back button color on the title bar.
Parameter | Data Type | Default value | Required | Description |
red | Int | 0 | Yes | Specifies the value of the red channel. The value range is between 0-255, including 0 and 255. |
green | Int | 0 | Yes | Specifies the value of the green channel. The value range is between 0-255, including 0 and 255. |
blue | Int | 0 | Yes | Specifies the value of the blue channel. The value range is between 0-255, including 0 and 255. |
alpha | Int | 255 | Yes | Specifies the value of the alpha channel. The value range is between 0-255, including 0 and 255. Note: Currently, this parameter does not support passing in customized values. If a value other than 255 is set, it is still set to 255. |
Sample
val startupParams = GRVStartupParams.createBuilderForApp(context, appId)
.setBackButtonColor(255,0,0,255)
.build()
Griver.openApp(startupParams,null)
User experience
Value | Screenshot |
(255,0,0,255) |