connectionInterrupted property

  1. @deprecated
EmptyCallback? connectionInterrupted
getter/setter pair

Occurs when the connection between the SDK and the server is interrupted.

Deprecated Use RtcEngineEventHandler.connectionStateChanged instead.

The SDK triggers this callback when it loses connection to 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. This callback is different from RtcEngineEventHandler.connectionLost:

If the SDK fails to rejoin the channel 20 minutes after being disconnected from Agora's edge server, the SDK stops rejoining the channel. The EmptyCallback typedef does not include any parameter.

Implementation

@deprecated
EmptyCallback? connectionInterrupted;