Customize user information
You can customize the user information and the UI in the user list screen. This page guides you on how to customize each data type of user information within the UI, particularly in the following cases:
- The user list UI when creating a channel.
- The user list UI when inviting users to channels.
User attributes
The users of the UIKit inherits from the UserInfo
interface. The following table lists the properties of UserInfo
.
Properties | Type | Description |
---|---|---|
userId | String | The unique ID of the user. |
nickname | String? | The user's nickname. (Default: |
profileUrl | String? | The URL of the user's profile image. (Default: |
Utilize the CreateChannelUserListAdapter
By default, the UIKit provides a selectable UI when creating a channel or inviting a user. The CreateChannelUserListAdapter
offers an interface to specify the state of the user item before the initial screen setup.
List of methods
Methods | Params | Description |
---|---|---|
setDisabledUserIdList | List<String> | Statically sets a list of user IDs that cannot be selected. |
isDisabled | Determines dynamically if the user should be not selectable from the list when rendering user information. | |
isSelected | UserInfo | Determines is the user is currently in a selected state. |
Create a new user list item
You can create a new user list item UI by providing a separate ViewHolder that inherits from the BaseViewHolder
. To learn about how to apply custom adapters, see this page.
For an in-depth practical demonstration, see our sample code.