Package io.rong.imkit.notification
Class RongNotificationManager
-
- All Implemented Interfaces:
-
io.rong.imkit.userinfo.RongUserInfoManager.UserDataObserver
public class RongNotificationManager implements RongUserInfoManager.UserDataObserver
-
-
Method Summary
Modifier and Type Method Description static RongNotificationManagergetInstance()voidinit(Application application)booleanisInCurrentUserConversationPage(Message message)voidsetNotificationQuietHours(String startTime, int spanMinutes, RongIMClient.OperationCallback callback)设置会话通知免打扰时间。 voidgetNotificationQuietHours(RongIMClient.GetNotificationQuietHoursCallback callback)获取会话通知免打扰时间。 voidremoveNotificationQuietHours(RongIMClient.OperationCallback callback)voidgetConversationNotificationStatus(ConversationIdentifier conversationIdentifier, RongIMClient.ResultCallback<Conversation.ConversationNotificationStatus> callback)voidclearAllNotification()清除所有通知 voidonUserUpdate(UserInfo user)用户信息发生变更时的回调方法。 voidonGroupUpdate(Group group)群组信息发生变更时的回调方法。 voidonGroupUserInfoUpdate(GroupUserInfo groupUserInfo)群昵称信息发生变更时的回调方法。 -
-
Method Detail
-
getInstance
static RongNotificationManager getInstance()
-
init
void init(Application application)
-
isInCurrentUserConversationPage
boolean isInCurrentUserConversationPage(Message message)
-
setNotificationQuietHours
void setNotificationQuietHours(String startTime, int spanMinutes, RongIMClient.OperationCallback callback)
设置会话通知免打扰时间。
- Parameters:
startTime- 起始时间 格式 HH:MM:SS。spanMinutes- 间隔分钟数大于 0 小于 1440。callback- 设置会话通知免打扰时间回调。
-
getNotificationQuietHours
void getNotificationQuietHours(RongIMClient.GetNotificationQuietHoursCallback callback)
获取会话通知免打扰时间。
-
removeNotificationQuietHours
void removeNotificationQuietHours(RongIMClient.OperationCallback callback)
-
getConversationNotificationStatus
void getConversationNotificationStatus(ConversationIdentifier conversationIdentifier, RongIMClient.ResultCallback<Conversation.ConversationNotificationStatus> callback)
-
clearAllNotification
void clearAllNotification()
清除所有通知
-
onUserUpdate
void onUserUpdate(UserInfo user)
用户信息发生变更时的回调方法。
-
onGroupUpdate
void onGroupUpdate(Group group)
群组信息发生变更时的回调方法。
- Parameters:
group- 变更后的群信息。
-
onGroupUserInfoUpdate
void onGroupUserInfoUpdate(GroupUserInfo groupUserInfo)
群昵称信息发生变更时的回调方法。
- Parameters:
groupUserInfo- 变更后的群昵称信息。
-
-
-
-