Package io.smooch.ui

Class NotificationController


  • public class NotificationController
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void triggerNotification​(android.content.Context context, java.lang.String conversationId, Message message)
      Triggers a Smooch notification, which will open intent from resource Smooch_settings_notificationIntent on tap.
      • Methods inherited from class java.lang.Object

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

      • NotificationController

        public NotificationController()
    • Method Detail

      • triggerNotification

        public static void triggerNotification​(android.content.Context context,
                                               java.lang.String conversationId,
                                               Message message)
        Triggers a Smooch notification, which will open intent from resource Smooch_settings_notificationIntent on tap. The notification will use provided message's avatarUrl as source for the icon.
        Parameters:
        context - The context from which to trigger the notification
        message - The message from which to trigger the notification