Searched refs:netLost (Results 1 – 13 of 13) sorted by relevance
/ohos5.0/foundation/communication/netmanager_base/frameworks/cj/connection/src/ |
H A D | net_connection_callback.cpp | 214 if (netConnection->netLost.size() == 0) { in NetLost() 219 int32_t len = static_cast<int32_t>(netConnection->netLost.size()); in NetLost() 221 netConnection->netLost[i](id); in NetLost()
|
H A D | net_connection_impl.cpp | 101 netConn_->netLost.push_back(CJLambda::Create(callback)); in OnNetLost()
|
/ohos5.0/foundation/communication/netmanager_base/frameworks/cj/connection/include/ |
H A D | net_connection_impl.h | 46 std::vector<std::function<void(int32_t)>> netLost; variable
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/ |
H A D | js-apis-net-connection.md | 1830 > 设备从有网络到无网络状态会触发netLost事件; 1831 > 设备从WiFi到蜂窝会触发netLost事件(WiFi丢失)之后触发 netAvailable事件(蜂窝可用); 2079 ### on('netLost') 2081 on(type: 'netLost', callback: Callback\<NetHandle>): void 2093 | type | string | 是 | 订阅事件,固定为'netLost'。<br/>netLost:网络严重中断或正常断开事… 2111 netCon.on('netLost', (data: connection.NetHandle) => {
|
/ohos5.0/docs/en/application-dev/reference/apis-network-kit/ |
H A D | js-apis-net-connection.md | 1830 > When a device changes to the network disconnected state, the **netLost** event will be triggered. 1831 > When a device switches from a Wi-Fi network to a cellular network, the **netLost** event will be … 2079 ### on('netLost') 2081 on(type: 'netLost', callback: Callback\<NetHandle>): void 2083 Registers a listener for **netLost** events. Before you call this API, make sure that you have call… 2093 … | Yes | Event type. This field has a fixed value of **netLost**.<br>netLost: event ind… 2110 // Subscribe to netLost events. Event notifications can be received only after register is called. 2111 netCon.on('netLost', (data: connection.NetHandle) => {
|
/ohos5.0/docs/en/application-dev/network/ |
H A D | net-connection-manager.md | 64 | on(type: 'netLost', callback: Callback\<NetHandle>): void; |Subscribes to **netLost** events.|
|
/ohos5.0/docs/zh-cn/application-dev/network/ |
H A D | net-connection-manager.md | 64 | on(type: 'netLost', callback: Callback\<NetHandle>): void; |订阅网络丢失事件 |
|
/ohos5.0/foundation/communication/netmanager_base/ |
H A D | README.md | 62 …net.connection.NetConnection | on(type: 'netLost', callback: Callback\<NetHandle>): void; |Listens…
|
H A D | README_zh.md | 83 | ohos.net.connection.NetConnection | on(type: 'netLost', callback: Callback\<NetHandle>): void; |监…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-network.md | 173 | ohos.net.connection | NetConnection | on(type: 'netLost', callback: Callback\<NetHandle>): void; …
|
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-network.md | 173 | ohos.net.connection | NetConnection | on(type: 'netLost', callback: Callback\<NetHandle>): void; …
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-communication.md | 1670 …on;<br>方法or属性:on(type: 'netLost', callback: Callback\<NetHandle>): void;<br>旧版本信息:|类名:NetConnectio…
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/ |
H A D | js-apidiff-communication.md | 1670 …'netLost', callback: Callback\<NetHandle>): void;<br>Old version information: |Class name: NetConn…
|