Share via


ConnectivityManager.StartUsingNetworkFeature(ConnectivityType, String) Method

Definition

Caution

deprecated

Tells the underlying networking system that the caller wants to begin using the named feature.

[Android.Runtime.Register("startUsingNetworkFeature", "(ILjava/lang/String;)I", "GetStartUsingNetworkFeature_ILjava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual int StartUsingNetworkFeature (Android.Net.ConnectivityType networkType, string? feature);
[<Android.Runtime.Register("startUsingNetworkFeature", "(ILjava/lang/String;)I", "GetStartUsingNetworkFeature_ILjava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member StartUsingNetworkFeature : Android.Net.ConnectivityType * string -> int
override this.StartUsingNetworkFeature : Android.Net.ConnectivityType * string -> int

Parameters

networkType
ConnectivityType

specifies which network the request pertains to

feature
String

the name of the feature to be used

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