bn.onNetworkStatusChange
▸ onNetworkStatusChange(cb
): void
Listens on the network status change event.
Parameters
Name | Type | Description |
---|---|---|
cb | OnNetworkStatusChangeCallback | The callback function for the network status change event. |
Returns
void
OnNetworkStatusChangeCallback
Ƭ OnNetworkStatusChangeCallback: (result
: OnNetworkStatusChangeCallbackResult
) => void
Type declaration
▸ (result
): void
Parameters
Name | Type |
---|---|
result | OnNetworkStatusChangeCallbackResult |
Returns
void
Interface: OnNetworkStatusChangeCallbackResult
Name | Type | Description |
---|---|---|
isConnected | boolean | Indicates whether it is connected to the network |
networkType | NetworkType | Network type |