Interface UnbluNotification


  • public interface UnbluNotification
    • Method Detail

      • getTitle

        @Nullable
        java.lang.String getTitle()
        Returns:
        the title of the notification
      • getBody

        @Nullable
        java.lang.String getBody()
        Returns:
        The body of the notification
      • getIcon

        int getIcon()
        Returns:
        icon id of the Unblu notification
      • getSound

        @Nullable
        java.lang.String getSound()
        Returns:
        The sound name of the Unblu notification.
        This can be "default" to have the default sound for the notifications of the system or the name of a file inside the top level raw folder. If it is null also the default is used.
        Note: This is only used for older android devices if there are no channels (version > Android O)
      • getChannelId

        @Nullable
        java.lang.String getChannelId()
        Returns:
        The id of the channel of the Unblu notification
      • getData

        java.util.Map<java.lang.String,​java.lang.String> getData()
        Returns:
        The additional data of the Unblu notification
      • setTitle

        void setTitle​(@Nullable
                      java.lang.String title)
      • setBody

        void setBody​(@Nullable
                     java.lang.String body)
      • setIcon

        void setIcon​(int icon)
      • setSound

        void setSound​(@Nullable
                      java.lang.String sound)
      • setChannelId

        void setChannelId​(@Nullable
                          java.lang.String channelId)
      • setData

        void setData​(java.util.Map<java.lang.String,​java.lang.String> data)