JsInjectorPlugin

Public interface to inject JS code to a website

Functions

Link copied to clipboard
abstract fun onPageFinished(webView: WebView, url: String?, site: Site?)

This method is called during onPageFinished and receives a webView instance, the url of the website and the site

Link copied to clipboard
abstract fun onPageStarted(webView: WebView, url: String?, isDesktopMode: Boolean?, activeExperiments: List<Toggle> = listOf())

This method is called during onPageStarted and receives a webView instance, the url of the website, isDesktopMode, and a list of activeExperiments