Home
last modified time | relevance | path

Searched refs:netLost (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/frameworks/cj/connection/src/
H A Dnet_connection_callback.cpp214 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 Dnet_connection_impl.cpp101 netConn_->netLost.push_back(CJLambda::Create(callback)); in OnNetLost()
/ohos5.0/foundation/communication/netmanager_base/frameworks/cj/connection/include/
H A Dnet_connection_impl.h46 std::vector<std::function<void(int32_t)>> netLost; variable
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/
H A Djs-apis-net-connection.md1830 > 设备从有网络到无网络状态会触发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 Djs-apis-net-connection.md1830 > 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 Dnet-connection-manager.md64 | on(type: 'netLost', callback: Callback\<NetHandle>): void; |Subscribes to **netLost** events.|
/ohos5.0/docs/zh-cn/application-dev/network/
H A Dnet-connection-manager.md64 | on(type: 'netLost', callback: Callback\<NetHandle>): void; |订阅网络丢失事件 |
/ohos5.0/foundation/communication/netmanager_base/
H A DREADME.md62 …net.connection.NetConnection | on(type: 'netLost', callback: Callback\<NetHandle>): void; |Listens…
H A DREADME_zh.md83 | 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 Djs-apidiff-network.md173 | ohos.net.connection | NetConnection | on(type: 'netLost', callback: Callback\<NetHandle>): void; …
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-network.md173 | 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 Djs-apidiff-communication.md1670 …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 Djs-apidiff-communication.md1670 …'netLost', callback: Callback\<NetHandle>): void;<br>Old version information: |Class name: NetConn…