OnUserVisibilityChangedType typedef
OnUserVisibilityChangedType =
void Function(bool currentUserVisibility, UserVisibilityChangeError errorCode)
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.
errorCode
: Error code for setting user visibility.
Implementation
typedef OnUserVisibilityChangedType = void Function(
bool currentUserVisibility, UserVisibilityChangeError errorCode);