Share via


PreferentialNetworkServiceConfig.IsFallbackToDefaultConnectionAllowed Property

Definition

Whether fallback to the device-wide default network is allowed.

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

Property Value

true if fallback is allowed, else false.

Attributes

Remarks

Whether fallback to the device-wide default network is allowed.

This boolean configures whether the default connection (e.g. general cell network or wifi) should be used if no preferential network service connection is available. If true, the default connection will be used when no preferential service is available. If false, the UIDs subject to this configuration will have no default network. Note that while this boolean determines whether the UIDs subject to this configuration have a default network in the absence of a preferential service, apps can still explicitly decide to use another network than their default network by requesting them from the system. This boolean does not determine whether the UIDs are blocked from using such other networks. See #shouldBlockNonMatchingNetworks() for that configuration.

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

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