Packagecom.tuarua.onesignal
Classpublic class OSNotificationPayload
InheritanceOSNotificationPayload Inheritance Object



Public Properties
 PropertyDefined By
  actionButtons : Vector.<ActionButton>
List of action buttons on the notification.
OSNotificationPayload
  additionalData : Object
Custom additional data that was sent with the notification.
OSNotificationPayload
  attachments : Object
iOS attachments sent as part of the rich notification.
OSNotificationPayload
  badge : uint
OSNotificationPayload
  badgeIncrement : int
OSNotificationPayload
  bigPicture : String
Android big picture image set on the notification.
OSNotificationPayload
  body : String
Body text of the notification.
OSNotificationPayload
  category : String
OSNotificationPayload
  collapseId : String
OSNotificationPayload
  contentAvailable : uint
iOS - Provided key with a value of 1 to indicate that new content is available.
OSNotificationPayload
  fromProjectNumber : String
The Google project number the notification was sent under.
OSNotificationPayload
  groupKey : String
Notifications with this same key will be grouped together as a single summary notification.
OSNotificationPayload
  groupMessage : String
Summary text displayed in the summary notification.
OSNotificationPayload
  largeIcon : String
Android large icon set on the notification.
OSNotificationPayload
  launchURL : String
URL to open when opening the notification.
OSNotificationPayload
  ledColor : String
Devices that have a notification LED will blink in this color.
OSNotificationPayload
  lockScreenVisibility : uint
Privacy setting for how the notification should be shown on the lockscreen of Android 5+ devices.
OSNotificationPayload
  mutableContent : Boolean
OSNotificationPayload
  notificationID : String
OneSignal notification UUID.
OSNotificationPayload
  priority : uint
OSNotificationPayload
  rawPayload : String
Raw JSON payload string received from OneSignal.
OSNotificationPayload
  smallIcon : String
Android small icon resource name set on the notification.
OSNotificationPayload
  smallIconAccentColor : String
Accent color shown around small notification icon on Android 5+ devices.
OSNotificationPayload
  sound : String
Sound resource parameter to play when the notification is shown.
OSNotificationPayload
  subtitle : String
iOS subtitle text of the notification.
OSNotificationPayload
  templateID : String
OSNotificationPayload
  templateName : String
OSNotificationPayload
  title : String
Title text of the notification.
OSNotificationPayload
Public Methods
 MethodDefined By
  
OSNotificationPayload
Property Detail
actionButtonsproperty
public var actionButtons:Vector.<ActionButton>

List of action buttons on the notification.

additionalDataproperty 
public var additionalData:Object

Custom additional data that was sent with the notification. Set on the dashboard under Options > Additional Data or with the 'data' field on the REST API.

attachmentsproperty 
public var attachments:Object

iOS attachments sent as part of the rich notification.

badgeproperty 
public var badge:uint

badgeIncrementproperty 
public var badgeIncrement:int

bigPictureproperty 
public var bigPicture:String

Android big picture image set on the notification.

bodyproperty 
public var body:String

Body text of the notification.

categoryproperty 
public var category:String

collapseIdproperty 
public var collapseId:String

contentAvailableproperty 
public var contentAvailable:uint

iOS - Provided key with a value of 1 to indicate that new content is available. Including this key and value means that when your app is launched in the background or resumed application:didReceiveRemoteNotification:fetchCompletionHandler: is called.

fromProjectNumberproperty 
public var fromProjectNumber:String

The Google project number the notification was sent under.

groupKeyproperty 
public var groupKey:String

Notifications with this same key will be grouped together as a single summary notification.

groupMessageproperty 
public var groupMessage:String

Summary text displayed in the summary notification.

largeIconproperty 
public var largeIcon:String

Android large icon set on the notification.

launchURLproperty 
public var launchURL:String

URL to open when opening the notification.

ledColorproperty 
public var ledColor:String

Devices that have a notification LED will blink in this color. ARGB format.

lockScreenVisibilityproperty 
public var lockScreenVisibility:uint

Privacy setting for how the notification should be shown on the lockscreen of Android 5+ devices. 1 (Default) - Public (fully visible) 0 - Private (Contents are hidden) -1 - Secret (not shown).

mutableContentproperty 
public var mutableContent:Boolean

notificationIDproperty 
public var notificationID:String

OneSignal notification UUID.

priorityproperty 
public var priority:uint

rawPayloadproperty 
public var rawPayload:String

Raw JSON payload string received from OneSignal.

smallIconproperty 
public var smallIcon:String

Android small icon resource name set on the notification.

smallIconAccentColorproperty 
public var smallIconAccentColor:String

Accent color shown around small notification icon on Android 5+ devices. ARGB format.

soundproperty 
public var sound:String

Sound resource parameter to play when the notification is shown. iOS default set to UILocalNotificationDefaultSoundName.

subtitleproperty 
public var subtitle:String

iOS subtitle text of the notification.

templateIDproperty 
public var templateID:String

templateNameproperty 
public var templateName:String

titleproperty 
public var title:String

Title text of the notification.

Constructor Detail
OSNotificationPayload()Constructor
public function OSNotificationPayload()