hyphenate_SDK4.0 5.0.0
hyphenate java IM SDK
 
Loading...
Searching...
No Matches
com.hyphenate.chat.EMMessageSearchOption Class Reference

Public Member Functions

 EMMessageSearchOption ()
 
void setKeywordList (List< String > keywordList)
 
void setKeywordMatchType (EMKeywordListMatchType keywordMatchType)
 
void setConversationId (String conversationId)
 
void setMsgTypes (List< EMMessage.Type > msgTypes)
 
void setStartTime (long startTime)
 
void setEndTime (long endTime)
 
void setSearchScope (EMConversation.EMMessageSearchScope searchScope)
 

Detailed Description

The parameter configuration class for server message search. This feature requires the Message Search value-added service to be enabled in the Console.

Constructor & Destructor Documentation

◆ EMMessageSearchOption()

com.hyphenate.chat.EMMessageSearchOption.EMMessageSearchOption ( )

The constructor.

Member Function Documentation

◆ setConversationId()

void com.hyphenate.chat.EMMessageSearchOption.setConversationId ( String conversationId)

Sets the conversation ID filter (optional). For one-to-one chat, it is the other user's ID; for group chat or chat room, it is the group ID or chat room ID. Empty means searching all conversations.

◆ setEndTime()

void com.hyphenate.chat.EMMessageSearchOption.setEndTime ( long endTime)

Sets the query end time, a Unix timestamp in milliseconds, which must be specified together with the start time.

◆ setKeywordList()

void com.hyphenate.chat.EMMessageSearchOption.setKeywordList ( List< String > keywordList)

Sets the search keyword list. Each keyword supports 1-512 characters, with a total maximum of 1024 characters and up to 5 keywords.

◆ setKeywordMatchType()

void com.hyphenate.chat.EMMessageSearchOption.setKeywordMatchType ( EMKeywordListMatchType keywordMatchType)

Sets the search keyword match type. The default is EMKeywordListMatchType#OR.

◆ setMsgTypes()

void com.hyphenate.chat.EMMessageSearchOption.setMsgTypes ( List< EMMessage.Type > msgTypes)

Sets the message type filter (optional). Command messages and voice messages are not supported.

◆ setSearchScope()

void com.hyphenate.chat.EMMessageSearchOption.setSearchScope ( EMConversation.EMMessageSearchScope searchScope)

Sets the search scope. The default is message content only. See EMConversation.EMMessageSearchScope.

◆ setStartTime()

void com.hyphenate.chat.EMMessageSearchOption.setStartTime ( long startTime)

Sets the query start time, a Unix timestamp in milliseconds, which must be specified together with the end time.


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