@duckduckgo/privacy-dashboard
    Preparing search index...

    Function onChangeRequestData

    • Call this method when there is updated request information.

      Note: this expects each call to provide the full data set each time, not any kind of delta.

      Parameters

      Returns void

      In Kotlin, it might look something like this...

      // kotlin
      webView.evaluateJavascript("javascript:onChangeRequestData(\"${url}\", $requestDataAsJsonString);", null)

      ... which is the equivalent of calling the following inside the Privacy Dashboard

      // JavaScript
      window.onChangeTrackerBlockingData("https://example.com", rawRequestData)

      Please see cnn.json or google.json for examples of the RequestData type