Android.Webkit.JavascriptInterface Class
Annotation that allows exposing methods to JavaScript.

See Also: JavascriptInterface Members

Syntax

[Android.Runtime.Register("android/webkit/JavascriptInterface", DoNotGenerateAcw=true)]
[System.Obsolete("Use IJavascriptInterface interface instead")]
public abstract class JavascriptInterface : Java.Lang.Object, Java.Lang.Annotation.IAnnotation, IDisposable

Remarks

Annotation that allows exposing methods to JavaScript. Starting from API level NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#JELLY_BEAN_MR1 and above, only methods explicitly marked with this annotation are available to the Javascript code. See WebView.AddJavascriptInterface(Java.Lang.Object, System.String) for more information about it.

[Android Documentation]

Requirements

Namespace: Android.Webkit
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 17