ConnectivityManager.RequestBandwidthUpdate(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.
Requests bandwidth update for a given Network and returns whether the update request
is accepted by ConnectivityService.
[Android.Runtime.Register("requestBandwidthUpdate", "(Landroid/net/Network;)Z", "GetRequestBandwidthUpdate_Landroid_net_Network_Handler", ApiSince=23)]
public virtual bool RequestBandwidthUpdate(Android.Net.Network network);
[<Android.Runtime.Register("requestBandwidthUpdate", "(Landroid/net/Network;)Z", "GetRequestBandwidthUpdate_Landroid_net_Network_Handler", ApiSince=23)>]
abstract member RequestBandwidthUpdate : Android.Net.Network -> bool
override this.RequestBandwidthUpdate : Android.Net.Network -> bool
Parameters
- network
- Network
Network specifying which network you're interested.
Returns
true on success, false if the Network is no longer valid.
- Attributes
Remarks
Requests bandwidth update for a given Network and returns whether the update request is accepted by ConnectivityService. Once accepted, ConnectivityService will poll underlying network connection for updated bandwidth information. The caller will be notified via ConnectivityManager.NetworkCallback if there is an update. Notice that this method assumes that the caller has previously called #registerNetworkCallback(NetworkRequest, NetworkCallback) to listen for network changes.
Java documentation for android.net.ConnectivityManager.requestBandwidthUpdate(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.