leaveChannel property

RtcStatsCallback? leaveChannel
getter/setter pair

Occurs when a user leaves the channel.

When a user leaves the channel by using the RtcChannel.leaveChannel method, the SDK uses this callback to notify the app when the user leaves the channel.

With this callback, the app retrieves the channel information, such as the call duration and statistics. The RtcStatsCallback typedef includes the following parameter:

  • RtcStats stats: Statistics of the call.

Implementation

RtcStatsCallback? leaveChannel;