共用方式為


WebSettings.MixedContentCompatibilityMode Field

Definition

Caution

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

In this mode, the WebView will attempt to be compatible with the approach of a modern web browser with regard to mixed content.

[Android.Runtime.Register("MIXED_CONTENT_COMPATIBILITY_MODE")]
[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 MixedContentCompatibilityMode = 2;
[<Android.Runtime.Register("MIXED_CONTENT_COMPATIBILITY_MODE")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Webkit.MixedContentHandling enum directly instead of this field.", true)>]
val mutable MixedContentCompatibilityMode : Android.Webkit.MixedContentHandling

Field Value

Value = 2
Attributes

Remarks

In this mode, the WebView will attempt to be compatible with the approach of a modern web browser with regard to mixed content. Some insecure content may be allowed to be loaded by a secure origin and other types of content will be blocked. The types of content are allowed or blocked may change release to release and are not explicitly defined.

This mode is intended to be used by apps that are not in control of the content that they render but desire to operate in a reasonably secure environment. For highest security, apps are recommended to use #MIXED_CONTENT_NEVER_ALLOW.

Java documentation for android.webkit.WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to