leaveRoom abstract method
Leaves the room.
The user calls this method to leave the room, end the call process, and release all call-related resources.
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Notes:
- After a visible user leaves room, the other users in the room will receive RTCRoomEventHandler.onUserLeave.
- After the user leaves the room, they will receive RTCRoomEventHandler.onLeaveRoom themselves.
Implementation
Future<int?> leaveRoom();