Package 

Interface ReactionPushEmojiFactory


  • 
    public interface ReactionPushEmojiFactory
    
                        

    Factory that creates emojis to be displayed in the push notifications delivered for message reactions. Example:

    class CustomPushEmojiFactory : ReactionPushEmojiFactory {
    
      override fun emojiCode(type: String): String? {
          return when (type) {
            "like" -> "👍"
            "love" -> null
            else -> null
          }
      }
    }

    With the above implementation, a "like" reaction will show a thumbs up emoji in the push notification: Reacted 👍 to "Your message".

    A "love" reaction will show the reaction type as text instead of an emoji: Reacted :love: to "Your message".

    Important: To use this feature, you must migrate you project to use Push V3 in the Stream Dashboard.

    See Overview and Legacy Push System.

    • Method Summary

      Modifier and Type Method Description
      abstract String emojiCode(String type) Creates an emoji code for the given reaction type.
      • Methods inherited from class java.lang.Object

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

      • emojiCode

         abstract String emojiCode(String type)

        Creates an emoji code for the given reaction type.

        Parameters:
        type - The type of the reaction (e.g.