语言

ConnectivityManager.ReleaseNetworkRequest(PendingIntent) 方法

定义

删除通过 #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

参数

operation
PendingIntent

一个 PendingIntent 等于(由定义) Intent#filterEquals传递给具有 #requestNetwork(NetworkRequest, android.app.PendingIntent) 要删除的相应 NetworkRequest 的 PendingIntent。 不能为 null。

特性

注解

此方法的行为与释放网络资源和断开连接的行为相同 #unregisterNetworkCallback(android.app.PendingIntent) 。

Java文档android.net.ConnectivityManager.releaseNetworkRequest(android.app.PendingIntent)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于