Share via


ConnectivityManager.NetworkPreference Property

Definition

Caution

deprecated

Retrieves the current preferred network type.

[System.Obsolete("deprecated")]
public virtual Android.Net.ConnectivityType NetworkPreference { [Android.Runtime.Register("getNetworkPreference", "()I", "GetGetNetworkPreferenceHandler")] [Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")] get; [Android.Runtime.Register("setNetworkPreference", "(I)V", "GetSetNetworkPreference_IHandler")] set; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getNetworkPreference", "()I", "GetGetNetworkPreferenceHandler")>]
[<get: Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
[<set: Android.Runtime.Register("setNetworkPreference", "(I)V", "GetSetNetworkPreference_IHandler")>]
member this.NetworkPreference : Android.Net.ConnectivityType with get, set

Property Value

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