MessageNotification

Event that represents the reception of a push notification (or a locally generated one).

Parameters

title

Title of message notification.

body

Body content of the message notification.

trigger

The trigger that raised this notification: remote notification (push), position related (location), date-time related (calendar, timeInterval) or app generated (other).

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

The action associated with the notification.

Link copied to clipboard

Attachments added to the notification (they can be part of the data object).

Link copied to clipboard
open override fun beginProcessing(tracker: Tracker)

Hook method called just before the event processing in order to execute special operations.

Link copied to clipboard

Variable string values to be used in place of the format specifiers in bodyLocArgs to use to localize the body text to the user's current localization.

Link copied to clipboard

The key to the body string in the app's string resources to use to localize the body text to the user's current localization.

Link copied to clipboard

The category associated to the notification.

Link copied to clipboard

The application is notified of the delivery of the notification if it's in the foreground or background, the app will be woken up (iOS only).

Link copied to clipboard

Adds a list of contexts.

Link copied to clipboard
open override fun endProcessing(tracker: Tracker)

Hook method called just after the event processing in order to execute special operations.

Link copied to clipboard

Adds a list of contexts.

Link copied to clipboard

The group which this notification is part of.

Link copied to clipboard

The icon associated to the notification (Android only).

Link copied to clipboard
fun notificationCount(notificationCount: Int?): MessageNotification

The number of items this notification represents.

Link copied to clipboard
fun notificationTimestamp(notificationTimestamp: String?): MessageNotification

The time when the event of the notification occurred.

Link copied to clipboard

The sound played when the device receives the notification.

Link copied to clipboard

The notification's subtitle. (iOS only)

Link copied to clipboard

An identifier similar to 'group' but usable for different purposes (Android only).

Link copied to clipboard

An identifier similar to 'group' but usable for different purposes (iOS only).

Link copied to clipboard

Variable string values to be used in place of the format specifiers in titleLocArgs to use to localize the title text to the user's current localization.

Link copied to clipboard

The key to the title string in the app's string resources to use to localize the title text to the user's current localization.

Link copied to clipboard
fun trueTimestamp(trueTimestamp: Long?): AbstractEvent

Set the custom timestamp of the event.

Properties

Link copied to clipboard
var action: String? = null

The action associated with the notification.

Link copied to clipboard

Attachments added to the notification (they can be part of the data object).

Link copied to clipboard
Link copied to clipboard
var bodyLocArgs: List<String>? = null

Variable string values to be used in place of the format specifiers in bodyLocArgs to use to localize the body text to the user's current localization.

Link copied to clipboard
var bodyLocKey: String? = null

The key to the body string in the app's string resources to use to localize the body text to the user's current localization.

Link copied to clipboard
var category: String? = null

The category associated to the notification.

Link copied to clipboard

The application is notified of the delivery of the notification if it's in the foreground or background, the app will be woken up (iOS only).

Link copied to clipboard
open override val contexts: List<SelfDescribingJson>
Link copied to clipboard

List of custom contexts associated with the event.

Link copied to clipboard
open override val dataPayload: Map<String, Any?>
Link copied to clipboard
open override val entities: List<SelfDescribingJson>
Link copied to clipboard
var group: String? = null

The group which this notification is part of.

Link copied to clipboard
var icon: String? = null

The icon associated to the notification (Android only).

Link copied to clipboard
var notificationCount: Int? = null

The number of items this notification represents.

Link copied to clipboard

The time when the event of the notification occurred.

Link copied to clipboard
open override val schema: String
Link copied to clipboard
var sound: String? = null

The sound played when the device receives the notification.

Link copied to clipboard
var subtitle: String? = null

The notification's subtitle. (iOS only)

Link copied to clipboard
var tag: String? = null

An identifier similar to 'group' but usable for different purposes (Android only).

Link copied to clipboard

An identifier similar to 'group' but usable for different purposes (iOS only).

Link copied to clipboard
Link copied to clipboard
var titleLocArgs: List<String>? = null

Variable string values to be used in place of the format specifiers in titleLocArgs to use to localize the title text to the user's current localization.

Link copied to clipboard
var titleLocKey: String? = null

The key to the title string in the app's string resources to use to localize the title text to the user's current localization.

Link copied to clipboard
Link copied to clipboard
open override var trueTimestamp: Long? = null