leaveChannel property Null safety

RtcStatsCallback? leaveChannel
read / write

Occurs when a user leaves the channel.

When the app calls the RtcEngine.leaveChannel method, the SDK uses this callback to notify the app when the user leaves the channel.

With this callback, the application 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;