PreferentialNetworkServiceConfig.ShouldBlockNonMatchingNetworks Method

Definition

Whether to block UIDs from using other networks than the preferential service.

[Android.Runtime.Register("shouldBlockNonMatchingNetworks", "()Z", "", ApiSince=34)]
public bool ShouldBlockNonMatchingNetworks ();
[<Android.Runtime.Register("shouldBlockNonMatchingNetworks", "()Z", "", ApiSince=34)>]
member this.ShouldBlockNonMatchingNetworks : unit -> bool

Returns

true if UIDs should be blocked from using the other networks, else false.

Attributes

Remarks

Whether to block UIDs from using other networks than the preferential service.

Apps can inspect the list of available networks on the device and choose to use multiple of them concurrently for performance, privacy or other reasons. This boolean configures whether the concerned UIDs should be blocked from using networks that do not match the configured preferential network service even if these networks are otherwise open to all apps.

Java documentation for android.app.admin.PreferentialNetworkServiceConfig.shouldBlockNonMatchingNetworks().

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