Package io.getstream.chat.android.livedata.controller
See: Description
-
Object Summary Object Description NoQueryActive The ChannelController is initialized but no query is currently running. Loading Indicates we are loading the first page of results. OfflineNoResults If we are offline and don't have channels stored in offline storage, typically displayed as an error condition. NoQueryActive The QueryChannelsController is initialized but no query is currently running. Loading Indicates we are loading the first page of results. OfflineNoResults If we are offline and don't have channels stored in offline storage, typically displayed as an error condition. -
Class Summary Class Description Result The list of messages, loaded either from offline storage or an API call. MessagesState Result The list of channels, loaded either from offline storage or an API call. ChannelsState -
Interface Summary Interface Description ChannelController The Channel Controller exposes convenient livedata objects to build your chat interface It automatically handles the incoming events and keeps users, messages, reactions, channel information up to date automatically Offline storage is also handled using RoomThe most commonly used livedata objects are .messages (the livedata for the list of messages)
.channelData (livedata object with the channel name, image, etc.)
.members (livedata object with the members of this channel)
.watchers (the people currently watching this channel)
.typing (who is currently typing)
QueryChannelsController The QueryChannelsController is a small helper to show a list of channels .channels a livedata object with the list of channels. this list
.loading if we're currently loading
.loadingMore if we're currently loading more channels
ThreadController The threadController exposes livedata for a thread threadId (the id of the current thread)
loadingOlderMessages (if we're currently loading older messages)
endOfOlderMessages (if you've reached the end of older messages)