directory

Set avatar for users

User avatars are generally stored in the server. Call Kit (ZegoUIKitPrebuiltCall) does not know the real profile picture of each user, so it uses the first letter of the username to draw the user avatars by default, as shown below:

When a user in silence

When a user speaks

null
null

To configure the custom user avatars, you can use the avatarBuilder to set a custom builder method.

Here is the reference code:

Copy
Copy

When complete, the Call Kit (ZegoUIKitPrebuiltCall) displays the custom user avatar that you set.