setInAppWebViewCustomizer

fun setInAppWebViewCustomizer(customize: InAppWebView.() -> Unit?)

Set a customizer for HTML In-App WebView instances for the account configured as default.

The SDK adds a web message listener named moengageBridge to the WebView. Do not add a web message listener with that name.

Since

9.6.0

Parameters

customize

Lambda with InAppWebView receiver for customization, or pass null to clear

Throws

if the SDK is not initialized.


fun setInAppWebViewCustomizer(workspaceId: String, customize: InAppWebView.() -> Unit?)

Set a customizer for HTML In-App WebView instances for the given account.

The SDK adds a web message listener named moengageBridge to the WebView. Do not add a web message listener with that name.

Since

9.6.0

Parameters

workspaceId

Account identifier, APP ID on the MoEngage Dashboard.

customize

Lambda with InAppWebView receiver for customization, or pass null to clear

Throws

if the SDK is not initialized.