connectionStateChanged property
Occurs when the network connection state changes.
The Agora SDK triggers 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;