NIMSDK-AOS  9.15.0
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.msg.model.MemberPushOption类 参考

指定成员推送相关可选项 配置后发送消息,如果遇到414,说明客户端提交参数(forcePushList)格式有误;811说明是强推列表中帐号数量超限,目前上限是100个帐号。 更多...

类 com.netease.nimlib.sdk.msg.model.MemberPushOption 继承关系图:

Public 成员函数

List< String > getForcePushList ()
 返回强制推送的账号列表 更多...
 
String getForcePushContent ()
 返回强制推送的文案 更多...
 
boolean isForcePush ()
 返回是否强制推送 更多...
 
void setForcePush (boolean forcePush)
 设置是否强推(可扩展为区别于普通推送的推送形式),针对forcePushList里的帐号,false为不强推,true为强推,默认为true。 isForcePush只对forcePushList中的账号生效。 若指定isForcePush为false,则不会有强推。在此情况下,对于forcePushList中的用户,推送文案为forcePushContent;对于不在forcePushList中的用户,推送文案为pushContent; 针对在forcePushList中的账号:isForcePush为true时,推送文案中不会包含发送者nick,直接为forcePushContent;isForcePush为false时,推送文案中目前包含了发送者nick(暂定),即为fromNick:forcePushContent。 更多...
 
void setForcePushList (List< String > forcePushList)
 设置强推列表(可扩展为区别于普通推送的推送帐号列表),填null表示强推给该会话所有成员,不为null时最大上限账号为100个。 更多...
 
void setForcePushContent (String forcePushContent)
 强推文案(可扩展为区别与普通推送的推送文案),目前限制为500字以内 更多...
 

详细描述

指定成员推送相关可选项 配置后发送消息,如果遇到414,说明客户端提交参数(forcePushList)格式有误;811说明是强推列表中帐号数量超限,目前上限是100个帐号。

在文件 MemberPushOption.java10 行定义.

成员函数说明

◆ getForcePushContent()

String com.netease.nimlib.sdk.msg.model.MemberPushOption.getForcePushContent ( )

返回强制推送的文案

返回
强制推送文本

在文件 MemberPushOption.java32 行定义.

◆ getForcePushList()

List<String> com.netease.nimlib.sdk.msg.model.MemberPushOption.getForcePushList ( )

返回强制推送的账号列表

返回
账号列表

在文件 MemberPushOption.java23 行定义.

◆ isForcePush()

boolean com.netease.nimlib.sdk.msg.model.MemberPushOption.isForcePush ( )

返回是否强制推送

返回
是否强制推送

在文件 MemberPushOption.java41 行定义.

◆ setForcePush()

void com.netease.nimlib.sdk.msg.model.MemberPushOption.setForcePush ( boolean  forcePush)

设置是否强推(可扩展为区别于普通推送的推送形式),针对forcePushList里的帐号,false为不强推,true为强推,默认为true。 isForcePush只对forcePushList中的账号生效。 若指定isForcePush为false,则不会有强推。在此情况下,对于forcePushList中的用户,推送文案为forcePushContent;对于不在forcePushList中的用户,推送文案为pushContent; 针对在forcePushList中的账号:isForcePush为true时,推送文案中不会包含发送者nick,直接为forcePushContent;isForcePush为false时,推送文案中目前包含了发送者nick(暂定),即为fromNick:forcePushContent。

参数
forcePush是否强制推送

在文件 MemberPushOption.java53 行定义.

◆ setForcePushContent()

void com.netease.nimlib.sdk.msg.model.MemberPushOption.setForcePushContent ( String  forcePushContent)

强推文案(可扩展为区别与普通推送的推送文案),目前限制为500字以内

参数
forcePushContent强推文本,如不指定forcePushContent,则强推文案退化为IMMessage::pushContent字段。

在文件 MemberPushOption.java71 行定义.

◆ setForcePushList()

void com.netease.nimlib.sdk.msg.model.MemberPushOption.setForcePushList ( List< String >  forcePushList)

设置强推列表(可扩展为区别于普通推送的推送帐号列表),填null表示强推给该会话所有成员,不为null时最大上限账号为100个。

参数
forcePushList账号列表

在文件 MemberPushOption.java62 行定义.


该类的文档由以下文件生成: