Partager via


NetworkRequest.Builder.SetNetworkSpecifier Method

Definition

Overloads

SetNetworkSpecifier(NetworkSpecifier)
SetNetworkSpecifier(String)

SetNetworkSpecifier(NetworkSpecifier)

[Android.Runtime.Register("setNetworkSpecifier", "(Landroid/net/NetworkSpecifier;)Landroid/net/NetworkRequest$Builder;", "GetSetNetworkSpecifier_Landroid_net_NetworkSpecifier_Handler", ApiSince=26)]
public virtual Android.Net.NetworkRequest.Builder? SetNetworkSpecifier (Android.Net.NetworkSpecifier? networkSpecifier);
[<Android.Runtime.Register("setNetworkSpecifier", "(Landroid/net/NetworkSpecifier;)Landroid/net/NetworkRequest$Builder;", "GetSetNetworkSpecifier_Landroid_net_NetworkSpecifier_Handler", ApiSince=26)>]
abstract member SetNetworkSpecifier : Android.Net.NetworkSpecifier -> Android.Net.NetworkRequest.Builder
override this.SetNetworkSpecifier : Android.Net.NetworkSpecifier -> Android.Net.NetworkRequest.Builder

Parameters

networkSpecifier
NetworkSpecifier

Returns

Attributes

Remarks

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

SetNetworkSpecifier(String)

[Android.Runtime.Register("setNetworkSpecifier", "(Ljava/lang/String;)Landroid/net/NetworkRequest$Builder;", "GetSetNetworkSpecifier_Ljava_lang_String_Handler")]
public virtual Android.Net.NetworkRequest.Builder? SetNetworkSpecifier (string? networkSpecifier);
[<Android.Runtime.Register("setNetworkSpecifier", "(Ljava/lang/String;)Landroid/net/NetworkRequest$Builder;", "GetSetNetworkSpecifier_Ljava_lang_String_Handler")>]
abstract member SetNetworkSpecifier : string -> Android.Net.NetworkRequest.Builder
override this.SetNetworkSpecifier : string -> Android.Net.NetworkRequest.Builder

Parameters

networkSpecifier
String

Returns

Attributes

Remarks

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