CompletionCallback

interface CompletionCallback : STWCallback<T>

This interface is used with the STWMessagingManager in order to delegate event when trying to send a message &attachment.

When sending the message, the onCompletion is called when the message is saved in local Database and added to the request queue.

Functions

Link copied to clipboard
abstract fun onCompletion(@NonNull threadItem: ThreadItem, @Nullable message: BaseMessage)
Callback when action has been completed successfully In case of message send request, this callback is called when the message is saved in local DB and added in the sent queue.

Inherited functions

Link copied to clipboard
abstract fun onError(@NonNull error: T)
Called when an error occurs following a request executed by the developer.