-
- All Implemented Interfaces:
-
com.sendbird.android.handlers.Traceable
public class MessageContext implements Traceable
The context of a channel, used in MessageCollectionHandler.
-
-
Field Summary
Fields Modifier and Type Field Description private final CollectionEventSource
collectionEventSource
-
Constructor Summary
Constructors Constructor Description MessageContext(CollectionEventSource collectionEventSource, BaseMessage.SendingStatus sendingStatus)
-
Method Summary
Modifier and Type Method Description CollectionEventSource
getCollectionEventSource()
Returns the CollectionEventSource of current context. String
getTraceName()
Returns the name of CollectionEventSource. boolean
isFromEvent()
Returns whether the CollectionEventSource of this context is from the real-time events. BaseMessage.SendingStatus
getMessagesSendingStatus()
Returns the sending status of the messages that's sent out from MessageCollectionHandler with this context. String
toString()
-
-
Constructor Detail
-
MessageContext
MessageContext(CollectionEventSource collectionEventSource, BaseMessage.SendingStatus sendingStatus)
-
-
Method Detail
-
getCollectionEventSource
CollectionEventSource getCollectionEventSource()
Returns the CollectionEventSource of current context.
-
getTraceName
String getTraceName()
Returns the name of CollectionEventSource.
-
isFromEvent
boolean isFromEvent()
Returns whether the CollectionEventSource of this context is from the real-time events.
-
getMessagesSendingStatus
BaseMessage.SendingStatus getMessagesSendingStatus()
Returns the sending status of the messages that's sent out from MessageCollectionHandler with this context.
-
-
-
-