NetConn_NetConnCallback
typedef struct NetConn_NetConnCallback {...} NetConn_NetConnCallback
Overview
Defines a struct for the network status listener callback collection. All callback events must be registered; those not requiring attention can be set to empty.
Since: 12
Related module: NetConnection
Header file: net_connection_type.h
Summary
Member Variables
| Name | Description |
|---|---|
| OH_NetConn_NetworkAvailable onNetworkAvailable | Callback invoked when the network is available. |
| OH_NetConn_NetCapabilitiesChange onNetCapabilitiesChange | Callback invoked when the network capabilities change. |
| OH_NetConn_NetConnectionPropertiesChange onConnetionProperties | Callback invoked when network connection properties change. |
| OH_NetConn_NetLost onNetLost | Callback invoked when the network is disconnected. |
| OH_NetConn_NetUnavailable onNetUnavailable | Callback invoked when the network is unavailable. This callback is triggered when the network is not activated within the specified timeout interval. If the timeout interval is not set, this callback is not triggered. |
| OH_NetConn_NetBlockStatusChange onNetBlockStatusChange | Callback invoked when the network blocking status changes. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-netconnection-netconn-connectionproperties
openharmony 鸿蒙 errorcode-net-mdns
openharmony 鸿蒙 js-apis-net-ethernet-sys
openharmony 鸿蒙 errorcode-net-http
openharmony 鸿蒙 capi-netstack-http-proxy
openharmony 鸿蒙 js-apis-system-fetch
openharmony 鸿蒙 errorcode-kernel
openharmony 鸿蒙 capi-netstack-netstack-certblob