onNetworkTypeChanged property

(void Function(RtcConnection connection, NetworkType type)?) onNetworkTypeChanged
final

Occurs when the local network type changes. This callback occurs when the connection state of the local user changes. You can get the connection state and reason for the state change in this callback. When the network connection is interrupted, this callback indicates whether the interruption is caused by a network type change or poor network conditions.

  • connection The connection information. See RtcConnection .
  • type Network types: See NetworkType .

Implementation

final void Function(RtcConnection connection, NetworkType type)?
    onNetworkTypeChanged;