-
public class ChatNotificationHandler
-
-
Field Summary
Fields Modifier and Type Field Description private final NotificationConfigconfig
-
Constructor Summary
Constructors Constructor Description ChatNotificationHandler(Context context, NotificationConfig config)
-
Method Summary
Modifier and Type Method Description BooleanonChatEvent(ChatEvent event)BooleanonFirebaseMessage(RemoteMessage message)DeviceRegisteredListenergetDeviceRegisteredListener()NotificationLoadDataListenergetDataLoadListener()NotificationChannelcreateNotificationChannel()StringgetNotificationChannelId()StringgetNotificationChannelName()IntegergetSmallIcon()StringgetFirebaseMessageIdKey()StringgetFirebaseChannelIdKey()StringgetFirebaseChannelTypeKey()StringgetErrorCaseNotificationTitle()StringgetErrorCaseNotificationContent()NotificationbuildErrorCaseNotification()NotificationbuildNotification(Integer notificationId, String channelName, String messageText, String messageId, String channelType, String channelId)IntentgetNewMessageIntent(String messageId, String channelType, String channelId)IntentgetErrorCaseIntent()FirebaseMessageParsergetFirebaseMessageParser()FirebaseInstanceIdgetFirebaseInstanceId()final NotificationConfiggetConfig()-
-
Constructor Detail
-
ChatNotificationHandler
ChatNotificationHandler(Context context, NotificationConfig config)
-
-
Method Detail
-
onChatEvent
Boolean onChatEvent(ChatEvent event)
-
onFirebaseMessage
Boolean onFirebaseMessage(RemoteMessage message)
-
getDeviceRegisteredListener
DeviceRegisteredListener getDeviceRegisteredListener()
-
getDataLoadListener
NotificationLoadDataListener getDataLoadListener()
-
createNotificationChannel
NotificationChannel createNotificationChannel()
-
getNotificationChannelId
String getNotificationChannelId()
-
getNotificationChannelName
String getNotificationChannelName()
-
getSmallIcon
Integer getSmallIcon()
-
getFirebaseMessageIdKey
String getFirebaseMessageIdKey()
-
getFirebaseChannelIdKey
String getFirebaseChannelIdKey()
-
getFirebaseChannelTypeKey
String getFirebaseChannelTypeKey()
-
getErrorCaseNotificationTitle
String getErrorCaseNotificationTitle()
-
getErrorCaseNotificationContent
String getErrorCaseNotificationContent()
-
buildErrorCaseNotification
Notification buildErrorCaseNotification()
-
buildNotification
Notification buildNotification(Integer notificationId, String channelName, String messageText, String messageId, String channelType, String channelId)
-
getNewMessageIntent
Intent getNewMessageIntent(String messageId, String channelType, String channelId)
-
getErrorCaseIntent
Intent getErrorCaseIntent()
-
getFirebaseMessageParser
FirebaseMessageParser getFirebaseMessageParser()
-
getFirebaseInstanceId
FirebaseInstanceId getFirebaseInstanceId()
-
getConfig
final NotificationConfig getConfig()
-
-
-
-