connectionStateChanged property
ConnectionStateCallback?
connectionStateChanged
getter/setter pair
Occurs when the network connection state changes.
The SDK returns this callback to report on the current network connection state when it changes, and the reason to such change.
The ConnectionStateCallback
typedef includes the following parameters:
- ConnectionStateType
state
: The current network connection state. - ConnectionChangedReason
reason
: The reason causing the change of the connection state.
Implementation
ConnectionStateCallback? connectionStateChanged;