StatePlugin

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

Functions

Link copied to clipboard
open override fun getErrorHandler(): ErrorHandler
Link copied to clipboard
open override fun onUserDisconnected()
Link copied to clipboard
open override fun onUserSet(user: User)
Link copied to clipboard
open override fun <T : Any> resolveDependency(klass: KClass<T>): T?

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
open override fun onCreateChannelPrecondition(currentUser: User?, channelId: String, memberIds: List<String>): Result<Unit>
Link copied to clipboard
open suspend override fun onCreateChannelRequest(channelType: String, channelId: String, params: CreateChannelParams, currentUser: User)
open suspend override fun onCreateChannelRequest(channelType: String, channelId: String, memberIds: List<String>, extraData: Map<String, Any>, currentUser: User)
Link copied to clipboard
open suspend override fun onCreateChannelResult(channelType: String, channelId: String, memberIds: List<String>, result: Result<Channel>)
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
open override fun onDeleteReactionPrecondition(currentUser: User?): Result<Unit>
Link copied to clipboard
open suspend override fun onDeleteReactionRequest(cid: String?, messageId: String, reactionType: String, currentUser: User)
Link copied to clipboard
open suspend override fun onDeleteReactionResult(cid: String?, messageId: String, reactionType: String, currentUser: User, result: Result<Message>)
Link copied to clipboard
open suspend override fun onFetchCurrentUserResult(result: Result<User>)
Link copied to clipboard
open suspend override fun onGetMessageResult(messageId: String, result: Result<Message>)
Link copied to clipboard
open suspend override fun onGetNewerRepliesRequest(parentId: String, limit: Int, lastId: String?)
Link copied to clipboard
open suspend override fun onGetNewerRepliesResult(result: Result<List<Message>>, parentId: String, limit: Int, lastId: String?)
Link copied to clipboard
open suspend override fun onGetRepliesMoreRequest(parentId: String, firstId: String, limit: Int)
Link copied to clipboard
open suspend override fun onGetRepliesMoreResult(result: Result<List<Message>>, parentId: String, firstId: String, limit: Int)
Link copied to clipboard
open suspend override fun onGetRepliesPrecondition(parentId: String): Result<Unit>
Link copied to clipboard
open suspend override fun onGetRepliesRequest(parentId: String, limit: Int)
Link copied to clipboard
open suspend override fun onGetRepliesResult(result: Result<List<Message>>, parentId: String, limit: Int)
Link copied to clipboard
open override fun onGiphySendResult(cid: String, result: Result<Message>)
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
open suspend override fun onMarkAllReadRequest()
Link copied to clipboard
open suspend override fun onMessageDeletePrecondition(messageId: String): Result<Unit>
Link copied to clipboard
open suspend override fun onMessageDeleteRequest(messageId: String)
Link copied to clipboard
open suspend override fun onMessageDeleteResult(originalMessageId: String, result: Result<Message>)
Link copied to clipboard
open suspend override fun onMessageEditRequest(message: Message)
Link copied to clipboard
open suspend override fun onMessageEditResult(originalMessage: Message, result: Result<Message>)
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
open suspend override fun onQueryChannelsPrecondition(request: QueryChannelsRequest): Result<Unit>
Link copied to clipboard
open suspend override fun onQueryChannelsRequest(request: QueryChannelsRequest)
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
open suspend override fun onQueryThreadsPrecondition(request: QueryThreadsRequest): Result<Unit>
Link copied to clipboard
open suspend override fun onQueryThreadsRequest(request: QueryThreadsRequest)
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
open suspend override fun onSendReactionResult(cid: String?, reaction: Reaction, enforceUnique: Boolean, currentUser: User, result: Result<Reaction>)
Link copied to clipboard
open suspend override fun onShuffleGiphyResult(cid: String, result: Result<Message>)
Link copied to clipboard
open override fun onTypingEventPrecondition(eventType: String, channelType: String, channelId: String, extraData: Map<Any, Any>, eventTime: Date): Result<Unit>
Link copied to clipboard
open override fun onTypingEventRequest(eventType: String, channelType: String, channelId: String, extraData: Map<Any, Any>, eventTime: Date)
Link copied to clipboard
open override fun onTypingEventResult(result: Result<ChatEvent>, eventType: String, channelType: String, channelId: String, extraData: Map<Any, Any>, eventTime: Date)