Package 

Interface INotification

    • Method Detail

      • getAndroidNotificationId

         abstract Integer getAndroidNotificationId()

        Android notification id. Can later be used to dismiss the notification programmatically.

      • getTemplateName

         abstract String getTemplateName()

        The name of the OneSignal template that created this notification. If no template was used, this will be null.

      • getTemplateId

         abstract String getTemplateId()

        The id of the OneSignal tempalte that created this notification. If no template was used, this will be null.

      • getTitle

         abstract String getTitle()

        The title displayed to the user.

      • getBody

         abstract String getBody()

        The body displayed to the user.

      • getAdditionalData

         abstract JSONObject getAdditionalData()

        The key/value custom additional data specified when creating the notification.

      • getSmallIcon

         abstract String getSmallIcon()

        The small icon information specified when creating the notification.

      • getLargeIcon

         abstract String getLargeIcon()

        The large icon information specified when creating the notification.

      • getBigPicture

         abstract String getBigPicture()

        The big picture information specified when creating the notification.

      • getLaunchURL

         abstract String getLaunchURL()

        The launch URL information specified when creating the notification.

      • getSound

         abstract String getSound()

        The sound information specified when creating the notification.

      • getLedColor

         abstract String getLedColor()

        The LED color information specified when creating the notification.

      • getGroupKey

         abstract String getGroupKey()

        The group key information specified when creating the notification.

      • getGroupMessage

         abstract String getGroupMessage()

        The group message information specified when creating the notification.

      • getFromProjectNumber

         abstract String getFromProjectNumber()

        The from project information specified when creating the notification.

      • getCollapseId

         abstract String getCollapseId()

        The collapse ID specified when creating the notification.

      • getPriority

         abstract Integer getPriority()

        The priority information specified when creating the notification.

      • getSentTime

         abstract Long getSentTime()

        When this notification was sent by the backend.

      • getTtl

         abstract Integer getTtl()

        The TTL information specified when creating the notification.

      • getRawPayload

         abstract String getRawPayload()

        The raw payload of the notification that came into the device. This should only be used to access any data that is not yet represented in a property.