-
public class DatadogEventBridge.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static DatadogEventBridge.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitsetup(WebView webView)Attach the DatadogEventBridge to track events from the WebView as part of the same session. -
-
Method Detail
-
setup
@MainThread() final Unit setup(WebView webView)
Attach the DatadogEventBridge to track events from the WebView as part of the same session. This method must be called from the Main Thread. Please note that:
you need to enable the JavaScript support in the WebView settings for this feature to be functional:
webView.settings.javaScriptEnabled = trueby default, navigation will happen outside of your application (in a browser or a different app). To prevent that and ensure Datadog can track the full WebView user journey, attach a android.webkit.WebViewClient to your WebView, as follow:
webView.webViewClient = WebViewClient()- Parameters:
webView- the webView on which to attach the bridge More here.
-
-
-
-