onNetworkStatusChange(listener: Function)
Requires:
BaseKit≥2.0.1@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Description
Listen for network status changes. Note: On Android, this event only notifies that the network state changed. To get the latest network status, call the getNetworkType API again. Note: On Android, when the network state changes, the system may not update the network status immediately; there can be a delay. Therefore, when this event is triggered, you may need to call getNetworkType with a delay to obtain the latest information.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes |
Return Value
None