IConversation Observable
This interface is used with the STWMessagingManager in order to delegate some events/actions related to a given conversation ID to the user like :
- Message sending in progress (pending)
- Message status changed (delivery) :
- successfully received by server (200ok)
- failure to receive by server (for exp: 488)
- not delivered to recipient X
- delivered by recipient X
- seen (read receipt) by recipient X
- read in WebChat
- acknowledged (OK-message) by recipient X
- (sync) acknowledged (OK-message) by me
- Message successfully deleted
- (sync) Message deleted
- Message received
- (sync) Message received
- Conversation name changed
- Conversation Group Quit received (SWTo)
- (sync) Conversation Group Quit received
See also
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun onCloseConversationCompleted(@NonNull conversationId: String)
Content copied to clipboard
Called when the client has successfully close a conversation.
Link copied to clipboard
Called when an error occurred when the client close a conversation.
Link copied to clipboard
abstract fun onCloseConversationReceived(@NonNull conversationId: String, @NonNull internationalNumber: String)
Content copied to clipboard
Called when backend notifies the client that a user has close a conversation.
Link copied to clipboard
Called when backend sends a conversation list.
Link copied to clipboard
abstract fun onDeleteConversationReceived(@NonNull conversationId: String)
Content copied to clipboard
Called when a conversation has been deleted from your webChat.
Link copied to clipboard
abstract fun onDeliveryReport( @NonNull conversationId: String, @NonNull messageId: String, @NonNull deliveryReport: DeliveryReport)
Content copied to clipboard
Called when a message is delivered to a recipient, whether its a successful or a fail.
Link copied to clipboard
Called when an error occurred when the client invite new recipients
Link copied to clipboard
Link copied to clipboard
abstract fun onLeaveConversationCompleted(@NonNull conversationId: String)
Content copied to clipboard
Called when the client has successfully left a group.
Link copied to clipboard
Called when an error occurred when the client left a group.
Link copied to clipboard
abstract fun onLeaveConversationReceived(@NonNull conversationId: String, @NonNull internationalNumber: String)
Content copied to clipboard
Called when backend notifies the client that a user has left a group.
Link copied to clipboard
abstract fun onMessageDeleted( @NonNull conversationId: String, @NonNull deletedMessage: BaseMessage, deletedMessagePosition: Int)
Content copied to clipboard
Called when a message is successfully deleted whether from client to WebChat or the other way around
Link copied to clipboard
Called when the message auto-deletion feature is activated and the deletion operation task has been finished.
Link copied to clipboard
abstract fun onMessageDelivered(@NonNull conversationId: String, @NonNull messageId: String)
Content copied to clipboard
Called when a message is successfully delivered to the back-end
Link copied to clipboard
Called when backend sends a message list for the given conversationId.
Link copied to clipboard
abstract fun onMessageSendingInProgress(@NonNull conversationId: String, @NonNull messageId: String)
Content copied to clipboard
Called when a message is being sent
Link copied to clipboard
abstract fun onMessageUpdated(@NonNull conversationId: String, @NonNull messageId: String)
Content copied to clipboard
Called when a message was updated by the filtering system in order to remove any malicious attachments and/or contents that contains virus.
Link copied to clipboard
abstract fun onNewAdministratorsAssigned( @NonNull conversationId: String, @NonNull assignedAdminMsisdnList: List<String>, @NonNull administratorMsisdn: String)
Content copied to clipboard
Called when a list of phone number promoted as a regular admins by another administrator in a group conversation
Link copied to clipboard
abstract fun onNewMessageReceived( @NonNull conversationId: String, @NonNull message: BaseMessage, @NonNull internationalNumber: String, isNoNotification: Boolean)
Content copied to clipboard
Called when a message is received from backend whether for synchronization (from your WebChat) or received at runtime FYI : this callback is not called when a conversation or a message list request is received, this callback is only for messages at runtime
Link copied to clipboard
abstract fun onRemoveFromConversationCompleted(@NonNull conversationId: String)
Content copied to clipboard
Called when the client has successfully removed a recipient from a group conversation.
Link copied to clipboard
abstract fun onRemoveFromConversationFailed(@NonNull conversationId: String)
Content copied to clipboard
Called when an error occurred when the client (group conversation administrator) remove a recipient from conversation.
Link copied to clipboard
abstract fun onRemoveFromConversationReceived( @NonNull conversationId: String, @NonNull adminMsisdn: String, @Nullable removedMsisdnList: List<String>, @Nullable removedGroupId: List<String>)
Content copied to clipboard
Called when the backend notifies the client that a subscriber (whether a single user or a group) has been removed from a group conversation by the admin.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun onVoiceMessagePlayedReceived(@NonNull messageIdList: List<String>)
Content copied to clipboard
Called when a voice message attachment has been played from your webChat.