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

第三方推送服务 目前接入的第三方推送有:小米、华为、魅族、fcm。 更多...

Public 成员函数

InvocationFuture< Void > enable (boolean enable)
 开启/关闭圈组第三方推送服务 更多...
 
boolean isEnable ()
 是否开启了圈组第三方推送服务 更多...
 
InvocationFuture< Void > setPushNoDisturbConfig (boolean isOpen, String startTime, String stopTime)
 设置圈组推送免打扰时间,时间参数为北京时间的24小时计数 HH:mm,该时间段将不再向用户推送消息 更多...
 
InvocationFuture< Void > setPushShowNoDetail (boolean showNoDetail)
 设置圈组推送是否不展示详情 更多...
 
InvocationFuture< Void > setPushMsgType (@NonNull QChatPushMsgType pushMsgType)
 设置圈组推送消息类型 更多...
 
InvocationFuture< Void > setPushConfig (@NonNull QChatPushConfigParam param)
 设置圈组推送配置 更多...
 
boolean isPushShowNoDetail ()
 获取圈组推送是否不展示详情 更多...
 
NoDisturbConfig getPushNoDisturbConfig ()
 获取推送免打扰设置 更多...
 
QChatPushMsgType getPushMsgType ()
 获取推送消息类型 更多...
 
QChatPushConfig getPushConfig ()
 获取圈组推送设置 更多...
 
boolean isPushConfigExist ()
 圈组是否存在推送配置。 更多...
 

详细描述

第三方推送服务 目前接入的第三方推送有:小米、华为、魅族、fcm。

在文件 QChatPushService.java16 行定义.

成员函数说明

◆ enable()

InvocationFuture<Void> com.netease.nimlib.sdk.mixpush.QChatPushService.enable ( boolean  enable)

开启/关闭圈组第三方推送服务

参数
enabletrue 开启,SDK 需要与云信服务器做确认;false 关闭,SDK 也需要通知云信服务器。
返回
InvocationFuture 可以设置回调函数。只有与服务器交互完成后才算成功,如果出错,会有具体的错误代码。

◆ getPushConfig()

QChatPushConfig com.netease.nimlib.sdk.mixpush.QChatPushService.getPushConfig ( )

获取圈组推送设置

返回
QChatPushConfig

◆ getPushMsgType()

QChatPushMsgType com.netease.nimlib.sdk.mixpush.QChatPushService.getPushMsgType ( )

获取推送消息类型

返回

◆ getPushNoDisturbConfig()

NoDisturbConfig com.netease.nimlib.sdk.mixpush.QChatPushService.getPushNoDisturbConfig ( )

获取推送免打扰设置

返回
NoDisturbConfig

◆ isEnable()

boolean com.netease.nimlib.sdk.mixpush.QChatPushService.isEnable ( )

是否开启了圈组第三方推送服务

返回
默认开启

◆ isPushConfigExist()

boolean com.netease.nimlib.sdk.mixpush.QChatPushService.isPushConfigExist ( )

圈组是否存在推送配置。

返回
SDK 是否存在推送消息提醒的免打扰。

◆ isPushShowNoDetail()

boolean com.netease.nimlib.sdk.mixpush.QChatPushService.isPushShowNoDetail ( )

获取圈组推送是否不展示详情

返回
当前是否不展示详情

◆ setPushConfig()

InvocationFuture<Void> com.netease.nimlib.sdk.mixpush.QChatPushService.setPushConfig ( @NonNull QChatPushConfigParam  param)

设置圈组推送配置

参数
param
返回

◆ setPushMsgType()

InvocationFuture<Void> com.netease.nimlib.sdk.mixpush.QChatPushService.setPushMsgType ( @NonNull QChatPushMsgType  pushMsgType)

设置圈组推送消息类型

参数
pushMsgType推送消息类型
返回

◆ setPushNoDisturbConfig()

InvocationFuture<Void> com.netease.nimlib.sdk.mixpush.QChatPushService.setPushNoDisturbConfig ( boolean  isOpen,
String  startTime,
String  stopTime 
)

设置圈组推送免打扰时间,时间参数为北京时间的24小时计数 HH:mm,该时间段将不再向用户推送消息

参数
isOpen是否开启
startTime开始时间 格式 HH:mm
stopTime结束时间 格式 HH:mm
返回
InvocationFuture 可以设置回调函数。成功会返回成功信息,错误会返回相应的错误码。

◆ setPushShowNoDetail()

InvocationFuture<Void> com.netease.nimlib.sdk.mixpush.QChatPushService.setPushShowNoDetail ( boolean  showNoDetail)

设置圈组推送是否不展示详情

参数
showNoDetail是否不展示详情
返回
InvocationFuture 可以设置回调函数。成功会返回成功信息,错误会返回相应的错误码。

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