BaseChannel.getNextMessagesByTimestamp(long, boolean, int, boolean, BaseChannel.MessageTypeFilter, String, List, boolean, boolean, BaseChannel.GetMessagesHandler)
,
BaseChannel.getPreviousMessagesByTimestamp(long, boolean, int, boolean, BaseChannel.MessageTypeFilter, String, List, boolean, boolean, BaseChannel.GetMessagesHandler)
.@Deprecated
public final class MessageListQuery
extends java.lang.Object
Currently, 1 kind of message list can be queried.
The query can be get by calling BaseChannel.createMessageListQuery()
or BaseChannel.createMessageListQuery()
.
Modifier and Type | Class and Description |
---|---|
static interface |
MessageListQuery.MessageListQueryResult
Deprecated.
MessageListQueryResult handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isLoading()
Deprecated.
Checks if the current query is in communication progress with server.
|
void |
load(long messageTimestamp,
int prevLimit,
int nextLimit,
boolean reverse,
MessageListQuery.MessageListQueryResult handler)
Deprecated.
Requests query result for the previous and next messages given timestamp.
|
void |
next(long messageTimestamp,
int limit,
boolean reverse,
MessageListQuery.MessageListQueryResult handler)
Deprecated.
Requests query result for the next messages from given timestamp.
|
void |
prev(long messageTimestamp,
int limit,
boolean reverse,
MessageListQuery.MessageListQueryResult handler)
Deprecated.
Requests query result for the previous messages from given timestamp.
|
public boolean isLoading()
true
if the current query is not finished.public void next(long messageTimestamp, int limit, boolean reverse, MessageListQuery.MessageListQueryResult handler)
handler
as list
.messageTimestamp
- Starting message timestamp to query. Messages created after this timestamp will be returned.limit
- Maximum number of messages to load.reverse
- If true
the queried result will be returned by creation time descending order.handler
- Callback handler.public void prev(long messageTimestamp, int limit, boolean reverse, MessageListQuery.MessageListQueryResult handler)
handler
as list
.messageTimestamp
- Starting message timestamp to query. Messages created before this timestamp will be returned.limit
- Maximum number of messages to load.reverse
- If true
the queried result will be returned by creation time descending order.handler
- Callback handler.public void load(long messageTimestamp, int prevLimit, int nextLimit, boolean reverse, MessageListQuery.MessageListQueryResult handler)
handler
as list
.messageTimestamp
- Timestamp. Messages created before, after and at this timestamp will be returned.prevLimit
- Maximum number of previous messages to load.nextLimit
- Maximum number of next messages to load.reverse
- If true
the queried result will be returned by creation time descending order.handler
- Callback handler. 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.