Package com.swrve.sdk

Class SwrveNotificationDetails


  • public class SwrveNotificationDetails
    extends java.lang.Object
    A POJO describing the basic details about a Swrve notification. A subset of all details.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBody()
      Get the body text of the notification
      java.lang.String getExpandedBody()
      Get the expanded body text
      java.lang.String getExpandedTitle()
      Get the notification title when expanded
      android.graphics.Bitmap getMediaBitmap()
      Get the media bitmap (image displayed in the notification)
      java.lang.String getMediaUrl()
      Get the media url (image url displayed in the notification)
      java.lang.String getTitle()
      Get the notification title
      void setBody​(java.lang.String body)
      Set the body text of the notification
      void setExpandedBody​(java.lang.String expandedBody)
      Set the expanded body text
      void setExpandedTitle​(java.lang.String expandedTitle)
      Set the notification title when expanded
      void setMediaBitmap​(android.graphics.Bitmap mediaBitmap)
      Set the media bitmap (image displayed in the notification)
      void setMediaUrl​(java.lang.String mediaUrl)
      Set the media url (image url displayed in the notification)
      void setTitle​(java.lang.String title)
      Set the notification title
      • Methods inherited from class java.lang.Object

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

      • SwrveNotificationDetails

        public SwrveNotificationDetails()
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Get the notification title
        Returns:
        The notification title.
      • setTitle

        public void setTitle​(java.lang.String title)
        Set the notification title
        Parameters:
        title - The notification title.
      • getBody

        public java.lang.String getBody()
        Get the body text of the notification
        Returns:
        The body text of the notification
      • setBody

        public void setBody​(java.lang.String body)
        Set the body text of the notification
        Parameters:
        body - The body text
      • getExpandedTitle

        public java.lang.String getExpandedTitle()
        Get the notification title when expanded
        Returns:
        The notification title
      • setExpandedTitle

        public void setExpandedTitle​(java.lang.String expandedTitle)
        Set the notification title when expanded
        Parameters:
        expandedTitle - The expanded title
      • getExpandedBody

        public java.lang.String getExpandedBody()
        Get the expanded body text
        Returns:
        The expanded body text
      • setExpandedBody

        public void setExpandedBody​(java.lang.String expandedBody)
        Set the expanded body text
        Parameters:
        expandedBody - The expanded body text
      • getMediaUrl

        public java.lang.String getMediaUrl()
        Get the media url (image url displayed in the notification)
        Returns:
        The media url
      • setMediaUrl

        public void setMediaUrl​(java.lang.String mediaUrl)
        Set the media url (image url displayed in the notification)
        Parameters:
        mediaUrl - The media url
      • getMediaBitmap

        public android.graphics.Bitmap getMediaBitmap()
        Get the media bitmap (image displayed in the notification)
        Returns:
        The media bitmap
      • setMediaBitmap

        public void setMediaBitmap​(android.graphics.Bitmap mediaBitmap)
        Set the media bitmap (image displayed in the notification)
        Parameters:
        mediaBitmap - The media bitmap.