onNetworkStatusChange
Requires:
BaseKit≥2.0.1@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
onNetworkStatusChange(listener: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
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