다음을 통해 공유


ConnectivityManager.RegisterDefaultNetworkCallback Method

Definition

Overloads

RegisterDefaultNetworkCallback(ConnectivityManager+NetworkCallback)
RegisterDefaultNetworkCallback(ConnectivityManager+NetworkCallback, Handler)

RegisterDefaultNetworkCallback(ConnectivityManager+NetworkCallback)

[Android.Runtime.Register("registerDefaultNetworkCallback", "(Landroid/net/ConnectivityManager$NetworkCallback;)V", "GetRegisterDefaultNetworkCallback_Landroid_net_ConnectivityManager_NetworkCallback_Handler", ApiSince=24)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")]
public virtual void RegisterDefaultNetworkCallback (Android.Net.ConnectivityManager.NetworkCallback networkCallback);
[<Android.Runtime.Register("registerDefaultNetworkCallback", "(Landroid/net/ConnectivityManager$NetworkCallback;)V", "GetRegisterDefaultNetworkCallback_Landroid_net_ConnectivityManager_NetworkCallback_Handler", ApiSince=24)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
abstract member RegisterDefaultNetworkCallback : Android.Net.ConnectivityManager.NetworkCallback -> unit
override this.RegisterDefaultNetworkCallback : Android.Net.ConnectivityManager.NetworkCallback -> unit

Parameters

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

RegisterDefaultNetworkCallback(ConnectivityManager+NetworkCallback, Handler)

[Android.Runtime.Register("registerDefaultNetworkCallback", "(Landroid/net/ConnectivityManager$NetworkCallback;Landroid/os/Handler;)V", "GetRegisterDefaultNetworkCallback_Landroid_net_ConnectivityManager_NetworkCallback_Landroid_os_Handler_Handler", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")]
public virtual void RegisterDefaultNetworkCallback (Android.Net.ConnectivityManager.NetworkCallback networkCallback, Android.OS.Handler handler);
[<Android.Runtime.Register("registerDefaultNetworkCallback", "(Landroid/net/ConnectivityManager$NetworkCallback;Landroid/os/Handler;)V", "GetRegisterDefaultNetworkCallback_Landroid_net_ConnectivityManager_NetworkCallback_Landroid_os_Handler_Handler", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_NETWORK_STATE")>]
abstract member RegisterDefaultNetworkCallback : Android.Net.ConnectivityManager.NetworkCallback * Android.OS.Handler -> unit
override this.RegisterDefaultNetworkCallback : Android.Net.ConnectivityManager.NetworkCallback * Android.OS.Handler -> unit

Parameters

handler
Handler
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