rtcRoom$onUserLeave$reason method
FutureOr<void>
rtcRoom$onUserLeave$reason(
- ByteRTCGameRoom rtcRoom,
- NSString uid,
- ByteRTCUserOfflineReason reason
@detail callback
@author luomingkang
@brief This callback is triggered when a remote user is disconnected or turns invisible.
@param rtcRoom ByteRTCGameRoom instance.
@param uid ID of the user who leaves the game room, or switches to invisible.
@param reason Reason to leave the room:
- 0: The remote client calls leaveRoom{@link #ByteRTCGameRoom#leaveRoom} to leave the room.
- 1: The remote client is disconnected because of poor network connection or expired Token.
- 3: The remote user has been removed from the room by the administrator via a OpenAPI call.
Implementation
FutureOr<void> rtcRoom$onUserLeave$reason(ByteRTCGameRoom rtcRoom,
NSString uid, ByteRTCUserOfflineReason reason) async {}