Package ai.nexconn.chatui.notification
Class ChatUINotificationManager
-
- All Implemented Interfaces:
public class ChatUINotificationManager
-
-
Method Summary
Modifier and Type Method Description static ChatUINotificationManagergetInstance()voidinit(Application application)booleanisInCurrentUserConversationPage(Message message)voidsetNotificationQuietHours(String startTime, int spanMinutes, ErrorHandler callback)Sets the notification do-not-disturb time. voidgetNotificationQuietHours(Object callback)Gets the notification do-not-disturb time; updates local cache after syncing from server. voidremoveNotificationQuietHours(ErrorHandler callback)void)>getConversationNotificationStatus(ChannelIdentifier channelIdentifier, OperationHandler<Integer> callback)void)>getChannelNoDisturbLevel(ChannelIdentifier channelIdentifier, OperationHandler<Integer> callback)voidclearAllNotification()Clears all notifications voidonUserUpdate(UserInfo user)voidonGroupUpdate(GroupInfo group)voidonGroupUserInfoUpdate(GroupUserInfo groupUserInfo)-
-
Method Detail
-
getInstance
static ChatUINotificationManager getInstance()
-
init
void init(Application application)
-
isInCurrentUserConversationPage
boolean isInCurrentUserConversationPage(Message message)
-
setNotificationQuietHours
void setNotificationQuietHours(String startTime, int spanMinutes, ErrorHandler callback)
Sets the notification do-not-disturb time.
- Parameters:
startTime- start time in HH:MM:SS format.spanMinutes- interval in minutes, must be greater than 0 and less than 1440.callback- callback for the operation result.
-
getNotificationQuietHours
void getNotificationQuietHours(Object callback)
Gets the notification do-not-disturb time; updates local cache after syncing from server.
-
removeNotificationQuietHours
void removeNotificationQuietHours(ErrorHandler callback)
-
getConversationNotificationStatus
@Deprecated() void )>getConversationNotificationStatus(ChannelIdentifier channelIdentifier, OperationHandler<Integer> callback)
-
getChannelNoDisturbLevel
void )>getChannelNoDisturbLevel(ChannelIdentifier channelIdentifier, OperationHandler<Integer> callback)
-
clearAllNotification
void clearAllNotification()
Clears all notifications
-
onUserUpdate
void onUserUpdate(UserInfo user)
-
onGroupUpdate
void onGroupUpdate(GroupInfo group)
-
onGroupUserInfoUpdate
void onGroupUserInfoUpdate(GroupUserInfo groupUserInfo)
-
-
-
-