onLeaveChannel property

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

Callback when leaving a channel.

You can use this callback to obtain information such as the total call duration and the amount of data sent and received by the SDK.

  • connection Connection information. See RtcConnection.
  • stats Call statistics. See RtcStats.

Implementation

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