Global

Methods


_batchCheckAndFindSessions()

ids: 会话id列表,数组格式
prefix: 日志字符串

Returns:

Promise sessionList是第符合条件的会话列表


filterClientAntispam(content, antispamLexicon, code, type, content)

检查客户端反垃圾

  • 开发者在getClientAntispamLexicon获取反垃圾词库以后,可以通过此接口识别判断是否是垃圾文本
Parameters:
Name Type Description
content String

待检查文本

antispamLexicon Object

反垃圾词库,可选

code String

错误码

type Integer

反垃圾类型

content String

过滤后文本

Returns:
Type
Object
Example
nim.filterClientAntispam({
  content: '啦啦啦'
});

writeLocalLogBrowser(str, level, time)

浏览器环境下写日志到本地

Parameters:
Name Type Description
str *

日志

level *

日志等级

time *

日志时间


writeLocalLogRN(str, level)

RN环境下写日志到本地

Parameters:
Name Type Description
str *

日志

level *

日志等级