-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.notifications.handler.NotificationHandler
@Deprecated(message = This class will be used internally on future versions and won't be accesible, you need to implement your own [NotificationHandler], level = DeprecationLevel.ERROR) public class ChatNotificationHandler implements NotificationHandler
Class responsible for handling chat notifications.
-
-
Constructor Summary
Constructors Constructor Description ChatNotificationHandler(Context context, Function3<String, String, String, Intent> newMessageIntent)ChatNotificationHandler(Context context)
-
Method Summary
-
-
Method Detail
-
createNotificationChannel
NotificationChannel createNotificationChannel()
-
getNotificationChannelId
String getNotificationChannelId()
-
getNotificationChannelName
String getNotificationChannelName()
-
getErrorCaseNotificationTitle
String getErrorCaseNotificationTitle()
-
getErrorCaseNotificationContent
String getErrorCaseNotificationContent()
-
buildErrorCaseNotification
Notification buildErrorCaseNotification()
-
showNotification
Unit showNotification(Channel channel, Message message)
- Parameters:
channel- where the new message was postedmessage- was received
-
buildNotification
NotificationCompat.Builder buildNotification(Integer notificationId, Channel channel, Message message)
-
buildNotificationGroupSummary
NotificationCompat.Builder buildNotificationGroupSummary(Channel channel, Message message)
-
buildErrorNotificationGroupSummary
Notification buildErrorNotificationGroupSummary()
-
getNotificationGroupKey
String getNotificationGroupKey(String channelType, String channelId)
-
getNotificationGroupSummaryId
Integer getNotificationGroupSummaryId(String channelType, String channelId)
-
getErrorNotificationGroupKey
String getErrorNotificationGroupKey()
-
getErrorNotificationGroupSummaryId
Integer getErrorNotificationGroupSummaryId()
-
getNewMessageIntent
Intent getNewMessageIntent(String messageId, String channelType, String channelId)
-
dismissChannelNotifications
Unit dismissChannelNotifications(String channelType, String channelId)
Dismiss notifications from a given channelType and channelId.
- Parameters:
channelType- String that represent the channel type of the channel you want to dismiss notifications.channelId- String that represent the channel id of the channel you want to dismiss notifications.
-
dismissAllNotifications
Unit dismissAllNotifications()
Dismiss all notifications.
-
getErrorCaseIntent
Intent getErrorCaseIntent()
-
-
-
-