Android Guides | Samples

Android.Webkit.IJavascriptInterface

Annotation that allows exposing methods to JavaScript.

See Also: IJavascriptInterface

Syntax

[Android.Runtime.Register("android/webkit/JavascriptInterface", "", "Android.Webkit.IJavascriptInterfaceInvoker")]
public interface IJavascriptInterface : IAnnotation, IDisposable

Remarks

Annotation that allows exposing methods to JavaScript. Starting from API level Build+VERSION.JellyBeanMr1 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.

[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

The members of Android.Webkit.IJavascriptInterface are listed below.