StatePlugin
class StatePlugin : Plugin, QueryMembersListener, QueryChannelsListener, QueryChannelListener, ThreadQueryListener, ChannelMarkReadListener, EditMessageListener, HideChannelListener, MarkAllReadListener, DeleteReactionListener, DeleteChannelListener, SendReactionListener, DeleteMessageListener, SendGiphyListener, ShuffleGiphyListener, SendMessageListener, TypingEventListener, SendAttachmentListener, FetchCurrentUserListener, QueryThreadsListener
Implementation of Plugin that brings support for the offline feature. This class work as a delegator of calls for one of its dependencies, so avoid to add logic here.
Parameters
logic
LogicRegistry
repositoryFacade
clientState
stateRegistry
syncManager
SyncManager
eventHandler
EventHandler
globalState
Inherited functions
Link copied to clipboard
open suspend override fun onAttachmentSendRequest(channelType: String, channelId: String, message: Message)
Link copied to clipboard
open suspend override fun onChannelMarkReadPrecondition(channelType: String, channelId: String): Result<Unit>
Link copied to clipboard
Link copied to clipboard
open suspend override fun onCreateChannelRequest(channelType: String, channelId: String, params: CreateChannelParams, currentUser: User)
Link copied to clipboard
Link copied to clipboard
open suspend override fun onDeleteChannelPrecondition(currentUser: User?, channelType: String, channelId: String): Result<Unit>
Link copied to clipboard
open suspend override fun onDeleteChannelRequest(currentUser: User?, channelType: String, channelId: String)
Link copied to clipboard
open suspend override fun onDeleteChannelResult(channelType: String, channelId: String, result: Result<Channel>)
Link copied to clipboard
Link copied to clipboard
open suspend override fun onDeleteReactionRequest(cid: String?, messageId: String, reactionType: String, currentUser: User)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun onGetRepliesResult(result: Result<List<Message>>, parentId: String, limit: Int)
Link copied to clipboard
Link copied to clipboard
open suspend override fun onHideChannelPrecondition(channelType: String, channelId: String, clearHistory: Boolean): Result<Unit>
Link copied to clipboard
open suspend override fun onHideChannelRequest(channelType: String, channelId: String, clearHistory: Boolean)
Link copied to clipboard
open suspend override fun onHideChannelResult(result: Result<Unit>, channelType: String, channelId: String, clearHistory: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun onMessageSendResult(result: Result<Message>, channelType: String, channelId: String, message: Message)
Link copied to clipboard
open suspend override fun onQueryChannelPrecondition(channelType: String, channelId: String, request: QueryChannelRequest): Result<Unit>
Link copied to clipboard
open suspend override fun onQueryChannelRequest(channelType: String, channelId: String, request: QueryChannelRequest)
Link copied to clipboard
open suspend override fun onQueryChannelResult(result: Result<Channel>, channelType: String, channelId: String, request: QueryChannelRequest)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun onQueryChannelsResult(result: Result<List<Channel>>, request: QueryChannelsRequest)
Link copied to clipboard
open suspend override fun onQueryMembersResult(result: Result<List<Member>>, channelType: String, channelId: String, offset: Int, limit: Int, filter: FilterObject, sort: QuerySorter<Member>, members: List<Member>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun onQueryThreadsResult(result: Result<QueryThreadsResult>, request: QueryThreadsRequest)
Link copied to clipboard
open suspend override fun onSendReactionPrecondition(currentUser: User?, reaction: Reaction): Result<Unit>
Link copied to clipboard
open suspend override fun onSendReactionRequest(cid: String?, reaction: Reaction, enforceUnique: Boolean, currentUser: User)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard