Package io.rong.imkit.config
Interface DataProcessor
-
- All Implemented Interfaces:
public interface DataProcessor<T>
-
-
Method Summary
Modifier and Type Method Description abstract Array<ConversationType>
supportedTypes()
设置会话列表页支持的会话类型 abstract List<T>
filtered(List<T> data)
对会话数据进行过滤。 从数据库批量拉取到会话列表时和在线收到消息产生新会话时都会回调此方法 abstract boolean
isGathered(ConversationType type)
某一会话类型是否聚合状态显示。 boolean
isGathered(ConversationIdentifier identifier)
某一会话类型是否聚合状态显示。 -
-
Method Detail
-
supportedTypes
abstract Array<ConversationType> supportedTypes()
设置会话列表页支持的会话类型
- Returns:
所支持的会话类型
-
filtered
abstract List<T> filtered(List<T> data)
对会话数据进行过滤。
从数据库批量拉取到会话列表时和在线收到消息产生新会话时都会回调此方法
- Parameters:
data
- 待过滤的数据- Returns:
过滤完的数据。
-
isGathered
abstract boolean isGathered(ConversationType type)
某一会话类型是否聚合状态显示。
- Parameters:
type
- 会话类型
-
isGathered
boolean isGathered(ConversationIdentifier identifier)
某一会话类型是否聚合状态显示。
- Parameters:
identifier
- 会话标识符
-
-
-
-