Partager via


ConnectivityManager.ProcessDefaultNetwork Property

Definition

Returns the Network currently bound to this process via #bindProcessToNetwork, or null if no Network is explicitly bound.

public static Android.Net.Network? ProcessDefaultNetwork { [Android.Runtime.Register("getProcessDefaultNetwork", "()Landroid/net/Network;", "")] get; }
[<get: Android.Runtime.Register("getProcessDefaultNetwork", "()Landroid/net/Network;", "")>]
static member ProcessDefaultNetwork : Android.Net.Network

Property Value

Network to which this process is bound, or null.

Attributes

Remarks

Returns the Network currently bound to this process via #bindProcessToNetwork, or null if no Network is explicitly bound.

This member is deprecated. Using this function can lead to other functions throwing IllegalStateException. Use #getBoundNetworkForProcess instead. getBoundNetworkForProcess is a direct replacement.

Java documentation for android.net.ConnectivityManager.getProcessDefaultNetwork().

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