Example usage for android.webkit WebView removeJavascriptInterface

List of usage examples for android.webkit WebView removeJavascriptInterface

Introduction

In this page you can find the example usage for android.webkit WebView removeJavascriptInterface.

Prototype

public void removeJavascriptInterface(@NonNull String name) 

Source Link

Document

Removes a previously injected Java object from this WebView.

Usage

From source file:com.just.agentweb.WebSecurityLogicImpl.java

@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override//ww w  .  j a v a 2s  .com
public void dealHoneyComb(WebView view) {
    if (Build.VERSION_CODES.HONEYCOMB > Build.VERSION.SDK_INT
            || Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR1) {
        return;
    }
    view.removeJavascriptInterface("searchBoxJavaBridge_");
    view.removeJavascriptInterface("accessibility");
    view.removeJavascriptInterface("accessibilityTraversal");
}