lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 17


public abstract @interface JavascriptInterface
implements Annotation


Annotation that allows exposing methods to JavaScript. Starting from API level Build.VERSION_CODES.JELLY_BEAN_MR1 and above, only methods explicitly marked with this annotation are available to the Javascript code. See WebView.addJavascriptInterface(Object, String) for more information about it.


Inherited methods