Udostępnij za pośrednictwem


ConnectivityManager.UnregisterNetworkCallback Method

Definition

Overloads

UnregisterNetworkCallback(PendingIntent)
UnregisterNetworkCallback(ConnectivityManager+NetworkCallback)

Unregisters callbacks about and possibly releases networks originating from RequestNetwork(NetworkRequest, ConnectivityManager+NetworkCallback) and RegisterNetworkCallback(NetworkRequest, PendingIntent) calls.

UnregisterNetworkCallback(PendingIntent)

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

Parameters

operation
PendingIntent
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

UnregisterNetworkCallback(ConnectivityManager+NetworkCallback)

Unregisters callbacks about and possibly releases networks originating from RequestNetwork(NetworkRequest, ConnectivityManager+NetworkCallback) and RegisterNetworkCallback(NetworkRequest, PendingIntent) calls.

[Android.Runtime.Register("unregisterNetworkCallback", "(Landroid/net/ConnectivityManager$NetworkCallback;)V", "GetUnregisterNetworkCallback_Landroid_net_ConnectivityManager_NetworkCallback_Handler")]
public virtual void UnregisterNetworkCallback (Android.Net.ConnectivityManager.NetworkCallback networkCallback);
[<Android.Runtime.Register("unregisterNetworkCallback", "(Landroid/net/ConnectivityManager$NetworkCallback;)V", "GetUnregisterNetworkCallback_Landroid_net_ConnectivityManager_NetworkCallback_Handler")>]
abstract member UnregisterNetworkCallback : Android.Net.ConnectivityManager.NetworkCallback -> unit
override this.UnregisterNetworkCallback : Android.Net.ConnectivityManager.NetworkCallback -> unit

Parameters

networkCallback
ConnectivityManager.NetworkCallback

The ConnectivityManager.NetworkCallback used when making the request.

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