onUserVisibilityChanged property
FutureOr<void> Function(bool currentUserVisibility, UserVisibilityChangeError errorCode)?
onUserVisibilityChanged
getter/setter pair
@valid since 3.54
@detail callback
@author caocun
@brief Callback for user to set user visibility by calling setUserVisibility{@link #RTCRoom#setUserVisibility}.
@param currentUserVisibility Visibility of the current user.
- true: 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.
- false: 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 UserVisibilityChangeError{@link #UserVisibilityChangeError}.
Implementation
FutureOr<void> Function(
bool currentUserVisibility, UserVisibilityChangeError errorCode)?
onUserVisibilityChanged;