-
@Deprecated(message = You should use the DatadogEventBridge JavaScript interface instead.) public class RumWebChromeClient extends WebChromeClient
A WebViewClient propagating all relevant events to Datadog.
Any console message will be forwarded to an internal Logger, and errors will be sent to the GlobalRum monitor as RUM Errors.
This class is deprecated and you should use the new com.datadog.android.webview.DatadogEventBridge to track your WebViews:
val configuration = Configuration.Builder().setWebViewTrackingHosts(listOf(<YOUR_HOSTS>)) Datadog.initialize(this, credentials, configuration, trackingConsent) // By default, link navigation will be delegated to a third party app. // If you want all navigation to happen inside of the webview, uncomment the following line. // webView.webViewClient = WebViewClient() webView.settings.javaScriptEnabled = true webView.addJavascriptInterface(DatadogEventBridge(), "DatadogEventBridge")
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRumWebChromeClient.Companion
-
Constructor Summary
Constructors Constructor Description RumWebChromeClient()
-
Method Summary
Modifier and Type Method Description BooleanonConsoleMessage(ConsoleMessage consoleMessage)-
Methods inherited from class com.datadog.android.rum.webview.RumWebChromeClient
getDefaultVideoPoster, getVideoLoadingProgressView, getVisitedHistory, onCloseWindow, onConsoleMessage, onCreateWindow, onExceededDatabaseQuota, onGeolocationPermissionsHidePrompt, onGeolocationPermissionsShowPrompt, onHideCustomView, onJsAlert, onJsBeforeUnload, onJsConfirm, onJsPrompt, onJsTimeout, onPermissionRequest, onPermissionRequestCanceled, onProgressChanged, onReceivedIcon, onReceivedTitle, onReceivedTouchIconUrl, onRequestFocus, onShowCustomView, onShowCustomView, onShowFileChooser -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onConsoleMessage
Boolean onConsoleMessage(ConsoleMessage consoleMessage)
-
-
-
-