Chat SDK for Android v1.3.2
agora java chat SDK
 
Loading...
Searching...
No Matches
io.agora.chat.Conversation.SearchDirection Enum Reference

Public Attributes

 UP
 
 DOWN
 

Detailed Description

The message search direction.

The message research is based on the Unix timestamp included in messages. Each message contains two Unix timestamps:

  • The Unix timestamp when the message is created;
  • The Unix timestamp when the message is received by the server.

Which Unix timestamp is used for message search depends on the setting of ChatOptions#setSortMessageByServerTime(boolean).

Member Data Documentation

◆ DOWN

io.agora.chat.Conversation.SearchDirection.DOWN

Messages are retrieved in the ascending order of the Unix timestamp included in them.

◆ UP

io.agora.chat.Conversation.SearchDirection.UP

Messages are retrieved in the descending order of the Unix timestamp included in them.


The documentation for this enum was generated from the following file: