UrlRequest.Builder.BindToNetwork(Network) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Binds the request to the specified network.
[Android.Runtime.Register("bindToNetwork", "(Landroid/net/Network;)Landroid/net/http/UrlRequest$Builder;", "GetBindToNetwork_Landroid_net_Network_Handler", ApiSince=34)]
public abstract Android.Net.Http.UrlRequest.Builder BindToNetwork(Android.Net.Network? network);
[<Android.Runtime.Register("bindToNetwork", "(Landroid/net/Network;)Landroid/net/http/UrlRequest$Builder;", "GetBindToNetwork_Landroid_net_Network_Handler", ApiSince=34)>]
abstract member BindToNetwork : Android.Net.Network -> Android.Net.Http.UrlRequest.Builder
Parameters
- network
- Network
the network to bind the request to. Specify null to unbind.
Returns
the builder to facilitate chaining. This value cannot be null.
- Attributes
Remarks
Binds the request to the specified network. The HTTP stack will send this request only using the network associated to this handle. If this network disconnects the request will fail, the exact error will depend on the stage of request processing when the network disconnects.
Android reference for android.net.http.UrlRequest.Builder.bindToNetwork.
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.