onUserLeave property

OnUserLeaveType? onUserLeave
getter/setter pair

Callback about remote users leaving the room.

Other users in the room will receive the callback in the following scenarios:

  • When the remote visible user calls RTCRoom.leaveRoom to leave the room.
  • When the remote visible user calls RTCRoom.setUserVisibility to switch themselves to invisible
  • When the remote user is disconnected and never restored.

Implementation

OnUserLeaveType? onUserLeave;