-
public final class DatadogEventBridgeThis 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDatadogEventBridge.Companion
-
Constructor Summary
Constructors Constructor Description 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(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).
-
Method Summary
Modifier and Type Method Description final Unitsend(String event)Called from the browser-sdk side whenever there is a new RUM/LOG event available related with the tracked WebView. final StringgetAllowedWebViewHosts()Called from the browser-sdk to get the list of hosts for which the WebView tracking is allowed. -
-
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.
-
-
-
-