connectionInterrupted property Null safety

EmptyCallback? connectionInterrupted
read / write

网络连接中断回调。

Deprecated

该回调已经废弃。请改用 RtcEngineEventHandler.connectionStateChanged 回调。

SDK 在和服务器建立连接后,失去了网络连接超过 4 秒,会触发该回调。在触发事件后,SDK 会主动重连服务器,所以该事件可以用于 UI 提示。 与 RtcEngineEventHandler.connectionLost 回调的区别是:

如果 SDK 在断开连接后,20 分钟内还是没能重新加入频道,SDK 会停止尝试重连。

Implementation

@deprecated
EmptyCallback? connectionInterrupted;