public class MessageContext
extends java.lang.Object
MessageCollectionHandler.| Constructor and Description |
|---|
MessageContext(CollectionEventSource collectionEventSource,
BaseMessage.SendingStatus sendingStatus) |
| Modifier and Type | Method and Description |
|---|---|
CollectionEventSource |
getCollectionEventSource()
Returns the
CollectionEventSource of current context. |
BaseMessage.SendingStatus |
getMessagesSendingStatus()
Returns the sending status of the messages that's sent out from
MessageCollectionHandler with this context. |
java.lang.String |
getTraceName()
Returns the name of
CollectionEventSource. |
boolean |
isFromEvent()
Returns whether the
CollectionEventSource of this context is from the real-time events. |
java.lang.String |
toString() |
public MessageContext(CollectionEventSource collectionEventSource, BaseMessage.SendingStatus sendingStatus)
public CollectionEventSource getCollectionEventSource()
CollectionEventSource of current context.CollectionEventSource.public java.lang.String getTraceName()
CollectionEventSource.CollectionEventSourcepublic boolean isFromEvent()
CollectionEventSource of this context is from the real-time events.CollectionEventSource of this context is from the real-time events.public BaseMessage.SendingStatus getMessagesSendingStatus()
MessageCollectionHandler with this context.MessageCollectionHandlerpublic java.lang.String toString()
toString in class java.lang.Object Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.