onLeaveChannel property

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

Occurs when a user leaves a channel. This callback notifies the app that the user leaves the channel by calling leaveChannel . From this callback, the app can get information such as the call duration and quality statistics.

  • connection The connection information. See RtcConnection .
  • stats The statistics of the call. See RtcStats .

Implementation

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