public static class MessageCollection.Builder
extends java.lang.Object
MessageCollection
.Constructor and Description |
---|
Builder(GroupChannel channel,
MessageListParams params)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MessageCollection |
build()
Builds a
MessageCollection using this builder. |
MessageCollection.Builder |
setMessageCollectionHandler(MessageCollectionHandler handler)
Sets the message collection handler to be used for this
MessageCollection . |
MessageCollection.Builder |
setStartingPoint(long startingPoint)
Sets the starting point of which to load messages from.
|
public Builder(GroupChannel channel, MessageListParams params)
channel
- the target GroupChannel
to load messages from.params
- MessageListParams
used to load messages.public MessageCollection.Builder setMessageCollectionHandler(MessageCollectionHandler handler)
MessageCollection
.handler
- MessageCollectionHandler
.MessageCollection.Builder
.public MessageCollection.Builder setStartingPoint(long startingPoint)
startingPoint
- specific timestamp, or Long.MAX_VALUE
to start from the lastest message.MessageCollection.Builder
.MessageCollection.getStartingPoint().
public MessageCollection build()
MessageCollection
using this builder.MessageCollection
. 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.