Waiting Room Background Transparency Option
warning
The following content applies to Android version 4.4.3 and above.
Overview
This document explains how to configure the background transparency option for the waiting room (WebView) in the NetFUNNEL Android Agent. Enabling waiting room transparency lets you overlay the waiting room on top of your app's existing UI to provide a more seamless visual experience.
Parameter
| Parameter | Type | Description |
|---|---|---|
| isTransparent | BOOLEAN | Whether to make the background of the waiting room transparent |
isTransparent
The background behavior of the waiting room changes depending on the setting:
| Value | Description |
|---|---|
true | The waiting room background is transparent, so the app's original screen is visible underneath. |
false | (Default) The waiting room background is opaque. |
Usage Example
To use the waiting room background transparency option, add the parameter as shown below when calling the initialization function.
Using Transparent Background
// SampleApplication.kt
import com.nf4.Netfunnel
class SampleApplication : Application() {
override fun onCreate() {
super.onCreate()
Netfunnel.initialize(
clientId = "{{CLIENT_ID}}",
isTransparent = true
)
}
}
Using Opaque Background
// SampleApplication.kt
import com.nf4.Netfunnel
class SampleApplication : Application() {
override fun onCreate() {
super.onCreate()
Netfunnel.initialize(
clientId = "{{CLIENT_ID}}",
isTransparent = false // Or omit/null for default
)
}
}