Package-level declarations
Properties
GlobalState instance that contains information about the current user, unreads, etc.
StateRegistry instance that contains all state objects exposed in offline plugin. The instance is being initialized after connecting the user!
Functions
Returns thread replies in the form of ThreadState, however, unlike getRepliesAsState it will return it only after the API call made to get replies has ended. Thread state will be returned regardless if the API call has succeeded or failed, the only difference is in how up to date the replies in the thread state are.
Cancels the message of "ephemeral" type. Removes the message from local storage and state.
Downloads the selected attachment to the "Download" folder in the public external storage directory.
Attempts to fetch the message from offline cache before making an API call.
Same class of ChatClient.getReplies, but provides the result as ThreadState
Loads message for a given message id and channel id.
Loads messages around the given message id.
Loads the newest messages of a channel.
Loads older messages for the channel.
Performs ChatClient.queryChannels under the hood and returns QueryChannelsState associated with the query. The QueryChannelsState cannot be created before connecting the user therefore, the method returns a StateFlow that emits a null when the user has not been connected yet and the new value every time the user changes.
Set the reply state for the channel.
Performs ChatClient.queryChannel with watch = true under the hood and returns ChannelState associated with the query. The ChannelState cannot be created before connecting the user therefore, the method returns a StateFlow that emits a null when the user has not been connected yet and the new value every time the user changes.