Skip to main content

bn.onNetworkStatusChange

onNetworkStatusChange(cb): void

Listens on the network status change event.

Parameters

NameTypeDescription
cbOnNetworkStatusChangeCallbackThe callback function for the network status change event.

Returns

void


OnNetworkStatusChangeCallback#

Ƭ OnNetworkStatusChangeCallback: (result: OnNetworkStatusChangeCallbackResult) => void

Type declaration

▸ (result): void

Parameters

NameType
resultOnNetworkStatusChangeCallbackResult

Returns

void


Interface: OnNetworkStatusChangeCallbackResult#

NameTypeDescription
isConnectedbooleanIndicates whether it is connected to the network
networkTypeNetworkTypeNetwork type