语言

WebSettings.MixedContentNeverAllow 字段

定义

注意

This constant will be removed in the future version. Use Android.Webkit.MixedContentHandling enum directly instead of this field.

在此模式下,WebView 不允许安全源从不安全的源加载内容。

[Android.Runtime.Register("MIXED_CONTENT_NEVER_ALLOW")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Webkit.MixedContentHandling enum directly instead of this field.", true)]
public const Android.Webkit.MixedContentHandling MixedContentNeverAllow = 1;
[<Android.Runtime.Register("MIXED_CONTENT_NEVER_ALLOW")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Webkit.MixedContentHandling enum directly instead of this field.", true)>]
val mutable MixedContentNeverAllow : Android.Webkit.MixedContentHandling

字段值

Value = 1
特性

注解

在此模式下,WebView 不允许安全源从不安全的源加载内容。 这是 WebView 和应用的首选且最安全的操作模式,强烈建议使用此模式。

Java文档android.webkit.WebSettings.MIXED_CONTENT_NEVER_ALLOW。

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

适用于