hyphenate_SDK4.0 4.6.0
hyphenate java IM SDK
Public 成员函数 | 所有成员列表
com.hyphenate.chat.EMCustomConversationFilter接口 参考

Public 成员函数

boolean filter (EMConversation emConversation)
 

详细描述

自定义会话过滤器

成员函数说明

◆ filter()

boolean com.hyphenate.chat.EMCustomConversationFilter.filter ( EMConversation  emConversation)

过滤会话,该方法由用户实现,用户可以根据conversation属性来决定是否过滤掉该会话

参数
emConversation会话
返回
由用户决定返回一个布尔类型的返回值。返回true则会话不会被过滤掉,会返回给用户,同时会加载到内存里。返回false则会话会被过滤,不会返回给用户,不会加载到内存里。

该接口的文档由以下文件生成: