setUserVisibility abstract method

Future<int?> setUserVisibility(
  1. bool enable
)

Sets user visibility. The local user is visible to others by default before calling this API.

Set user visibility and user behavior in the room through enable:

  • true: The user can publish media streams. The other users in the room can get informed of the behaviors of this user, such as joining room, starting video capture, and leaving room.
  • false: The user cannot publish media streams. The other users in the room can not get informed of the behaviors of this user, such as joining room, starting video capture, or leaving room.

Return value:

Notes:

Implementation

Future<int?> setUserVisibility(bool enable);