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
constructor(title: String, body: String, trigger: MessageNotificationTrigger)

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

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 context entities to the existing ones.

Link copied to clipboard

Adds a list of context entities to the existing ones.

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

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

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
open override var contexts: List<SelfDescribingJson>
Link copied to clipboard
open override val dataPayload: Map<String, Any?>

The payload for the event.

Link copied to clipboard
Link copied to clipboard

Used for events whose properties are added as entities, e.g. Ecommerce events

Link copied to clipboard

The group which this notification is part of.

Link copied to clipboard
var icon: String?

The icon associated to the notification (Android only).

Link copied to clipboard

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

The sound played when the device receives the notification.

Link copied to clipboard

The notification's subtitle. (iOS only)

Link copied to clipboard
var tag: String?

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

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
Link copied to clipboard
open override var trueTimestamp: Long?