Interface NotificationConfig.Interceptor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract boolean isNotificationIntercepted(Message message) Whether to intercept this local notification, typically used for custom notification display.
      abstract PendingIntent onPendingIntent(PendingIntent pendingIntent, Intent intent) Callback when setting the local notification PendingIntent.
      abstract boolean isHighPriorityMessage(Message message) Whether this is a high-priority message.
      abstract NotificationChannel onRegisterChannel(NotificationChannel defaultChannel) Callback before registering the default notification channel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isNotificationIntercepted

         abstract boolean isNotificationIntercepted(Message message)

        Whether to intercept this local notification, typically used for custom notification display.

        Parameters:
        message - the message associated with the local notification
        Returns:

        true to intercept (SDK will not show the notification; caller handles it); false to let SDK show it.

      • onPendingIntent

         abstract PendingIntent onPendingIntent(PendingIntent pendingIntent, Intent intent)

        Callback when setting the local notification PendingIntent. The app layer can modify the PendingIntent settings to customize notification click behavior. By default, clicking the notification navigates to the corresponding conversation page.

        Parameters:
        pendingIntent - the SDK default PendingIntent
        intent - the intent carried by the PendingIntent.
        Returns:

        the PendingIntent to use for the local notification.

      • isHighPriorityMessage

         abstract boolean isHighPriorityMessage(Message message)

        Whether this is a high-priority message. High-priority messages are exempt from global quiet hours and per-channel do-not-disturb, e.g. @ mention messages.

        Parameters:
        message - the received message
        Returns:

        whether this is a high-priority message

      • onRegisterChannel

         abstract NotificationChannel onRegisterChannel(NotificationChannel defaultChannel)

        Callback before registering the default notification channel. Use this to intercept and modify the default channel configuration, then return the modified channel.

        Parameters:
        defaultChannel - the default notification channel
        Returns:

        the modified notification channel.