connectionInterrupted property

  1. @Deprecated('Please use connectionStateChanged instead.')
EmptyCallback? connectionInterrupted
getter/setter pair

Occurs when the connection between the SDK and the server is interrupted. Deprecated: Please use connectionStateChanged instead. The SDK triggers this callback when it loses connection with the server for more than four seconds after the connection is established. After triggering this callback, the SDK tries to reconnect to the server. You can use this callback to implement pop-up reminders. The difference between this callback and connectionLost is: The SDK triggers the connectionInterrupted callback when it loses connection with the server for more than four seconds after it successfully joins the channel. The SDK triggers the connectionLost callback when it loses connection with the server for more than 10 seconds, whether or not it joins the channel. If the SDK fails to rejoin the channel 20 minutes after being disconnected from Agora's edge server, the SDK stops rejoining the channel.

Implementation

@Deprecated('Please use connectionStateChanged instead.')
EmptyCallback? connectionInterrupted;