Freigeben über


HttpEngine.BindToNetwork(Network) Method

Definition

Binds the engine to the specified network.

[Android.Runtime.Register("bindToNetwork", "(Landroid/net/Network;)V", "GetBindToNetwork_Landroid_net_Network_Handler", ApiSince=34)]
public virtual void BindToNetwork (Android.Net.Network? network);
[<Android.Runtime.Register("bindToNetwork", "(Landroid/net/Network;)V", "GetBindToNetwork_Landroid_net_Network_Handler", ApiSince=34)>]
abstract member BindToNetwork : Android.Net.Network -> unit
override this.BindToNetwork : Android.Net.Network -> unit

Parameters

network
Network

the network to bind the engine to. Specify null to unbind.

Attributes

Remarks

Binds the engine to the specified network. All requests created through this engine will use the network associated to this handle. If this network disconnects all requests will fail, the exact error will depend on the stage of request processing when the network disconnects.

Java documentation for android.net.http.HttpEngine.bindToNetwork(android.net.Network).

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