onLeaveChannel property

void Function(RtcConnection connection, RtcStats stats)? onLeaveChannel
final

离开频道回调。

你可以通过该回调获取此次通话的总通话时长、SDK 收发数据的流量等信息。

  • connection Connection 信息。详见 RtcConnection 。
  • stats 通话的统计数据,详见 RtcStats 。

Implementation

final void Function(RtcConnection connection, RtcStats stats)? onLeaveChannel;