ScriptHandler


public interface ScriptHandler


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

Summary

Public methods

abstract void
@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 methods

remove

Added in 1.9.0
@RequiresFeature(name = WebViewFeature.DOCUMENT_START_SCRIPT, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
abstract void remove()

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