ConnectivityManager.GetMultipathPreference(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.
Provides a hint to the calling application on whether it is desirable to use the multinetwork APIs (e.
[Android.Runtime.Register("getMultipathPreference", "(Landroid/net/Network;)I", "GetGetMultipathPreference_Landroid_net_Network_Handler", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")]
public virtual Android.Net.MultipathPreference GetMultipathPreference (Android.Net.Network? network);
[<Android.Runtime.Register("getMultipathPreference", "(Landroid/net/Network;)I", "GetGetMultipathPreference_Landroid_net_Network_Handler", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
abstract member GetMultipathPreference : Android.Net.Network -> Android.Net.MultipathPreference
override this.GetMultipathPreference : Android.Net.Network -> Android.Net.MultipathPreference
Parameters
- network
- Network
The network on which the application desires to use multipath data.
If null
, this method will return a preference that will generally
apply to metered networks.
Returns
a bitwise OR of zero or more of the MULTIPATH_PREFERENCE_*
constants.
- Attributes
Remarks
Provides a hint to the calling application on whether it is desirable to use the multinetwork APIs (e.g., Network#openConnection
, Network#bindSocket
, etc.) for multipath data transfer on this network when it is not the system default network. Applications desiring to use multipath network protocols should call this method before each such operation.
Java documentation for android.net.ConnectivityManager.getMultipathPreference(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.