AddMembersViewController
class AddMembersViewController(scope: CoroutineScope, resultLimit: Int = DEFAULT_RESULT_LIMIT, chatClient: ChatClient = ChatClient.instance(), channelState: Flow<ChannelState>)
Controller responsible for managing the state and actions related to adding members to a channel.
It provides functionality to search for users, select/deselect them, and paginate results. Adding the selected members to the channel is delegated to the parent (e.g. ChannelInfoViewController).
Parameters
scope
The CoroutineScope used for launching coroutines.
resultLimit
The maximum number of search results per page.
chatClient
The ChatClient instance used for interacting with the chat API.
channelState
A Flow representing the live state of the channel, used to keep track of current members reactively so that the list remains accurate when the sheet is re-opened.
Constructors
Link copied to clipboard
constructor(scope: CoroutineScope, resultLimit: Int = DEFAULT_RESULT_LIMIT, chatClient: ChatClient = ChatClient.instance(), channelState: Flow<ChannelState>)