ScriptHandler
public interface ScriptHandler
This interface represents the return result from addDocumentStartJavaScript. Call remove when the corresponding JavaScript script should be removed.
| See also | |
|---|---|
addDocumentStartJavaScript |
Summary
Public methods |
|
|---|---|
abstract void |
@UiThreadRemoves the corresponding script, it will take effect from next page load. |
Public methods
remove
Added in 1.9.0
@UiThread
@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.