NIMSDK-AOS  9.16.0
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.team.model.IMMessageFilter接口 参考

通知消息过滤器 更多...

Public 成员函数

boolean shouldIgnore (IMMessage message)
 是否过滤通知消息(默认不过滤) 更多...
 

详细描述

通知消息过滤器

在文件 IMMessageFilter.java8 行定义.

成员函数说明

◆ shouldIgnore()

boolean com.netease.nimlib.sdk.team.model.IMMessageFilter.shouldIgnore ( IMMessage  message)

是否过滤通知消息(默认不过滤)

参数
message通知消息
返回
返回true表示过滤(那么SDK将不存储此消息,上层也不会收到此消息),默认false即不过滤(默认存储到db并通知上层)

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