rtcRoom$onUserVisibilityChanged$errorCode method
FutureOr<void>
rtcRoom$onUserVisibilityChanged$errorCode(
- ByteRTCGameRoom rtcRoom,
- BOOL currentUserVisibility,
- ByteRTCUserVisibilityChangeError errorCode
@valid since 3.54
@detail callback
@author caocun
@brief Callback for user to set user visibility.
@param rtcRoom ByteRTCGameRoom instance.
@param currentUserVisibility Visibility of the current user.
- YES: Visible. The user can publish media streams. The other users in the room get informed of the behaviors of the user, such as joining room, starting video capture, and leaving room.
- NO: Invisible. The user cannot publish media streams. The other users in the room do not get informed of the behaviors of the user, such as joining room, starting video capture, or leaving room.
@param errorCode Error code for setting user visibility. See ByteRTCUserVisibilityChangeError{@link #ByteRTCUserVisibilityChangeError}.
Implementation
FutureOr<void> rtcRoom$onUserVisibilityChanged$errorCode(
ByteRTCGameRoom rtcRoom,
BOOL currentUserVisibility,
ByteRTCUserVisibilityChangeError errorCode) async {}