ScriptHandler


interface ScriptHandler


This interface represents the return result from addDocumentStartJavaScript. Call remove when the corresponding JavaScript script should be removed.

Summary

Public functions

Unit
@UiThread
@RequiresFeature(name = WebViewFeature.DOCUMENT_START_SCRIPT, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
remove()

Removes the corresponding script, it will take effect from next page load.

Public functions

remove

Added in 1.9.0
@UiThread
@RequiresFeature(name = WebViewFeature.DOCUMENT_START_SCRIPT, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
fun remove(): Unit

Removes the corresponding script, it will take effect from next page load.