rtsRoom$onLeaveRoom method
@detail callback
@brief Leave the RTS room successfully callback.
After the user call leaveRoom{@link #ByteRTCRTSRoom#leaveRoom}, the SDK will stop sending/receiving broadcast messages in the room and, after releasing all relevant resources, notify the user via this callback that leaving the room was successful.
@param rtsRoom RTSRoom object.
@param stats Reserved parameter.
@note
+ After the user calls the leaveRoom{@link #ByteRTCRTSRoom#leaveRoom} method to leave the room, if destroy{@link #ByteRTCRTSRoom#destroy} is called to destroy the room instance immediately, this callback event will not be received.
+ If the app needs to use the system audio & video device after leaving the room, it is recommended to initialize the audio & video device after receiving this callback, otherwise the initialization may fail due to the SDK occupying the audio & video device.
Implementation
FutureOr<void> rtsRoom$onLeaveRoom(
ByteRTCRTSRoom rtsRoom, ByteRTCRoomStats stats) async {}