Package 

Class DatadogEventBridge


  • 
    public final class DatadogEventBridge
    
                        

    This JavascriptInterface is used to intercept all the Datadog events produced by the displayed web page (if Datadog's browser-sdk is enabled). The goal is to make those events part of a unique mobile session. Please note that the WebView events will not be tracked unless the web page's URL Host is part of the list defined in the global Configuration, or in this constructor.

    • Method Summary

      Modifier and Type Method Description
      final Unit send(String event) Called from the browser-sdk side whenever there is a new RUM/LOG event available related with the tracked WebView.
      final String getAllowedWebViewHosts() Called from the browser-sdk to get the list of hosts for which the WebView tracking is allowed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatadogEventBridge

        DatadogEventBridge()
        This JavascriptInterface is used to intercept all the Datadog events produced by the displayed web page (if Datadog's browser-sdk is enabled).
      • DatadogEventBridge

        DatadogEventBridge(List<String> allowedHosts)
        This JavascriptInterface is used to intercept all the Datadog events produced by the displayed web page (if Datadog's browser-sdk is enabled).
        Parameters:
        allowedHosts - a list of all the hosts that you want to track when loaded in the WebView (e.g.
    • Method Detail

      • send

         final Unit send(String event)

        Called from the browser-sdk side whenever there is a new RUM/LOG event available related with the tracked WebView.

        Parameters:
        event - as the bundled web event as a Json string
      • getAllowedWebViewHosts

         final String getAllowedWebViewHosts()

        Called from the browser-sdk to get the list of hosts for which the WebView tracking is allowed.