Package 

Object DatadogEventBridge.Companion

    • Method Summary

      Modifier and Type Method Description
      final Unit setup(WebView webView) Attach the DatadogEventBridge to track events from the WebView as part of the same session.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 = true
        • by 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.