语言

ServiceWorkerWebSettings.AllowContentAccess 属性

定义

获取服务工作者是否支持内容 URL 访问。

public abstract bool AllowContentAccess { [Android.Runtime.Register("getAllowContentAccess", "()Z", "GetGetAllowContentAccessHandler", ApiSince=24)] get; [Android.Runtime.Register("setAllowContentAccess", "(Z)V", "GetSetAllowContentAccess_ZHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getAllowContentAccess", "()Z", "GetGetAllowContentAccessHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setAllowContentAccess", "(Z)V", "GetSetAllowContentAccess_ZHandler", ApiSince=24)>]
member this.AllowContentAccess : bool with get, set

属性值

如果服务辅助角色可以加载内容 URL,则为 True;否则为 false。

特性

注解

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

适用于