Sdílet prostřednictvím


PlatformVpnProfile.IsInternetValidationRequired Property

Definition

Returns whether this VPN should undergo Internet validation.

public bool IsInternetValidationRequired { [Android.Runtime.Register("isInternetValidationRequired", "()Z", "", ApiSince=33)] get; }
[<get: Android.Runtime.Register("isInternetValidationRequired", "()Z", "", ApiSince=33)>]
member this.IsInternetValidationRequired : bool

Property Value

Attributes

Remarks

Returns whether this VPN should undergo Internet validation.

If this is true, the platform will perform basic validation checks for Internet connectivity over this VPN. If and when they succeed, the VPN network capabilities will reflect this by gaining the NetworkCapabilities#NET_CAPABILITY_VALIDATED capability.

If this is false, the platform assumes the VPN either is always capable of reaching the Internet or intends not to. In this case, the VPN network capabilities will always gain the NetworkCapabilities#NET_CAPABILITY_VALIDATED capability immediately after it connects, whether it can reach public Internet destinations or not.

Java documentation for android.net.PlatformVpnProfile.isInternetValidationRequired().

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