Package io.rong.imkit.notification
Class RongNotificationManager
-
- All Implemented Interfaces:
public class RongNotificationManager
-
-
Method Summary
Modifier and Type Method Description static RongNotificationManagergetInstance()voidinit(Application application)booleanisInCurrentUserConversationPage(Message message)voidsetNotificationQuietHours(String startTime, int spanMinutes, OperationCallback callback)设置会话通知免打扰时间。 voidgetNotificationQuietHours(GetNotificationQuietHoursCallback callback)获取会话通知免打扰时间。 voidremoveNotificationQuietHours(OperationCallback callback)void)>getConversationNotificationStatus(ConversationIdentifier conversationIdentifier, ResultCallback<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, OperationCallback callback)
设置会话通知免打扰时间。
- Parameters:
startTime- 起始时间 格式 HH:MM:SS。spanMinutes- 间隔分钟数大于 0 小于 1440。callback- 设置会话通知免打扰时间回调。
-
getNotificationQuietHours
void getNotificationQuietHours(GetNotificationQuietHoursCallback callback)
获取会话通知免打扰时间。
-
removeNotificationQuietHours
void removeNotificationQuietHours(OperationCallback callback)
-
getConversationNotificationStatus
void )>getConversationNotificationStatus(ConversationIdentifier conversationIdentifier, ResultCallback<ConversationNotificationStatus> callback)
-
clearAllNotification
void clearAllNotification()
清除所有通知
-
onUserUpdate
void onUserUpdate(UserInfo user)
-
onGroupUpdate
void onGroupUpdate(Group group)
-
onGroupUserInfoUpdate
void onGroupUserInfoUpdate(GroupUserInfo groupUserInfo)
-
-
-
-