语言

JavascriptInterfaceAttribute 类

定义

标记通过 WebView 接口公开 JavaScript 的方法。

[Android.Runtime.Annotation("android.webkit.JavascriptInterface")]
public class JavascriptInterfaceAttribute : Attribute
[<Android.Runtime.Annotation("android.webkit.JavascriptInterface")>]
type JavascriptInterfaceAttribute = class
    inherit Attribute
继承
JavascriptInterfaceAttribute
特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

构造函数

名称 说明
JavascriptInterfaceAttribute()

创建一个属性,用于标记 JavaScript 可访问的方法。

适用于