Partager via


ConnectivityManager.ReleaseNetworkRequest(PendingIntent) Method

Definition

Removes a request made via #requestNetwork(NetworkRequest, android.app.PendingIntent)

[Android.Runtime.Register("releaseNetworkRequest", "(Landroid/app/PendingIntent;)V", "GetReleaseNetworkRequest_Landroid_app_PendingIntent_Handler", ApiSince=22)]
public virtual void ReleaseNetworkRequest (Android.App.PendingIntent operation);
[<Android.Runtime.Register("releaseNetworkRequest", "(Landroid/app/PendingIntent;)V", "GetReleaseNetworkRequest_Landroid_app_PendingIntent_Handler", ApiSince=22)>]
abstract member ReleaseNetworkRequest : Android.App.PendingIntent -> unit
override this.ReleaseNetworkRequest : Android.App.PendingIntent -> unit

Parameters

operation
PendingIntent

A PendingIntent equal (as defined by Intent#filterEquals) to the PendingIntent passed to #requestNetwork(NetworkRequest, android.app.PendingIntent) with the corresponding NetworkRequest you'd like to remove. Cannot be null.

Attributes

Remarks

Removes a request made via #requestNetwork(NetworkRequest, android.app.PendingIntent)

This method has the same behavior as #unregisterNetworkCallback(android.app.PendingIntent) with respect to releasing network resources and disconnecting.

Java documentation for android.net.ConnectivityManager.releaseNetworkRequest(android.app.PendingIntent).

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