MentionListController

class MentionListController(scope: CoroutineScope, sort: QuerySorter<Message>?, chatClient: ChatClient = ChatClient.instance())

Controller responsible for managing the state of the mention list.

Parameters

scope

The CoroutineScope on which coroutines should be launched.

sort

The sorting options for the messages.

chatClient

The ChatClient instance to use for API calls.

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope, sort: QuerySorter<Message>?, chatClient: ChatClient = ChatClient.instance())

Properties

Link copied to clipboard
val events: SharedFlow<MentionListEvent>

One shot events triggered by the controller.

Link copied to clipboard
val state: StateFlow<MentionListState>

The current state of the mention list.

Functions

Link copied to clipboard
fun loadMore()

Loads more mentions if there are more to load.