setUserData

fun AvatarView.setUserData(user: User, errorPlaceholder: Drawable? = null)

Sets User to the AvatarView for loading image and online status.

Parameters

user

The User model of the Stream SDK.

errorPlaceholder

An error placeholder that should be shown when request failed.