Class BatchInboxNotificationContent


  • public class BatchInboxNotificationContent
    extends java.lang.Object
    BatchInboxNotificationContent is a model representing the content of an inbox notification
    • Constructor Detail

    • Method Detail

      • getNotificationIdentifier

        @NonNull
        public java.lang.String getNotificationIdentifier()
        Unique identifier for this notification.
        Returns:
        The unique notification identifier. Do not make assumptions about its format: it can change at any time.
      • getTitle

        @Nullable
        public java.lang.String getTitle()
      • getBody

        @Nullable
        public java.lang.String getBody()
      • isUnread

        public boolean isUnread()
      • isDeleted

        @Deprecated
        public boolean isDeleted()
        Deprecated.
        You should refresh your copy of the data with getFetchedNotifications() after using markAsDeleted.
        Flag indicating whether this notification is deleted or not.
        Returns:
        true if notification is deleted
      • getDate

        @NonNull
        public java.util.Date getDate()
      • isSilent

        public boolean isSilent()
        Returns whether Batch considers this a silent notification. A silent notification is a notification with no title and message, which won't be displayed by Batch SDK. Warning: Other services listening to push messages might display it.
      • getRawPayload

        @NonNull
        public java.util.Map<java.lang.String,​java.lang.String> getRawPayload()
        Get the payload in its raw JSON form. This might differ from what you're used to in other classes handling push payloads. If you want to simulate the push behaviour, call BatchPushPayload.getPushBundle() on the instance given by getPushPayload() .