Share via


WifiInfo.IsRestricted Property

Definition

Returns true if the current Wifi network is a restricted network, false otherwise.

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

Property Value

Attributes

Remarks

Returns true if the current Wifi network is a restricted network, false otherwise. A restricted network has its NetworkCapabilities#NET_CAPABILITY_NOT_RESTRICTED capability removed.

Java documentation for android.net.wifi.WifiInfo.isRestricted().

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