Notification

actual class Notification(source)

The notification payload of a message, as the Android SDK's RemoteMessage.Notification; the image and link URLs are imageUrl and link extensions.

expect class Notification(source)

The notification payload of a message, as the Android SDK's RemoteMessage.Notification; the image and link URLs are imageUrl and link extensions.

actual class Notification(source)

The notification payload of a message, as the Android SDK's RemoteMessage.Notification; the image and link URLs are imageUrl and link extensions.

Properties

Link copied to clipboard
actual val body: String?

The body text.

expect val body: String?

The body text.

actual val body: String?

The body text.

Link copied to clipboard

The arguments of the localized body.

The arguments of the localized body.

The arguments of the localized body.

Link copied to clipboard

The key of the localized body in the app's string resources.

The key of the localized body in the app's string resources.

The key of the localized body in the app's string resources.

Link copied to clipboard
actual val channelId: String?

The Android notification channel.

expect val channelId: String?

The Android notification channel.

actual val channelId: String?

The Android notification channel.

Link copied to clipboard
actual val clickAction: String?

The action taken when the notification is tapped.

expect val clickAction: String?

The action taken when the notification is tapped.

actual val clickAction: String?

The action taken when the notification is tapped.

Link copied to clipboard
actual val color: String?

The notification colour, as #rrggbb.

expect val color: String?

The notification colour, as #rrggbb.

actual val color: String?

The notification colour, as #rrggbb.

Link copied to clipboard

Whether the default light settings are used.

Whether the default light settings are used.

Whether the default light settings are used.

Link copied to clipboard
actual val defaultSound: Boolean

Whether the default sound is used.

expect val defaultSound: Boolean

Whether the default sound is used.

actual val defaultSound: Boolean

Whether the default sound is used.

Link copied to clipboard

Whether the default vibration settings are used.

Whether the default vibration settings are used.

Whether the default vibration settings are used.

Link copied to clipboard
actual val eventTime: Long?

The event time, in milliseconds since the epoch.

expect val eventTime: Long?

The event time, in milliseconds since the epoch.

actual val eventTime: Long?

The event time, in milliseconds since the epoch.

Link copied to clipboard
actual val icon: String?

The icon resource name.

expect val icon: String?

The icon resource name.

actual val icon: String?

The icon resource name.

Link copied to clipboard

The SDK's Uri members; common code uses the String extensions of RemoteMessageUri.kt, which bind to these.

Link copied to clipboard

The URL of the notification image, if any.

The URL of the notification image, if any.

The URL of the notification image, if any.

Link copied to clipboard
actual val lightSettings: IntArray?

The LED colour, on and off durations.

expect val lightSettings: IntArray?

The LED colour, on and off durations.

actual val lightSettings: IntArray?

The LED colour, on and off durations.

Link copied to clipboard
val link: Uri?
Link copied to clipboard

The link opened when the notification is tapped, if any.

The link opened when the notification is tapped, if any.

The link opened when the notification is tapped, if any.

Link copied to clipboard
actual val localOnly: Boolean

Whether the notification is local to the device.

expect val localOnly: Boolean

Whether the notification is local to the device.

actual val localOnly: Boolean

Whether the notification is local to the device.

Link copied to clipboard
actual val notificationCount: Int?

The number of items the notification represents.

expect val notificationCount: Int?

The number of items the notification represents.

actual val notificationCount: Int?

The number of items the notification represents.

Link copied to clipboard

The Android notification priority.

The Android notification priority.

The Android notification priority.

Link copied to clipboard
actual val sound: String?

The sound resource name.

expect val sound: String?

The sound resource name.

actual val sound: String?

The sound resource name.

Link copied to clipboard
actual val sticky: Boolean

Whether the notification persists when tapped.

expect val sticky: Boolean

Whether the notification persists when tapped.

actual val sticky: Boolean

Whether the notification persists when tapped.

Link copied to clipboard
actual val tag: String?

The notification tag.

expect val tag: String?

The notification tag.

actual val tag: String?

The notification tag.

Link copied to clipboard
actual val ticker: String?

The ticker text.

expect val ticker: String?

The ticker text.

actual val ticker: String?

The ticker text.

Link copied to clipboard
actual val title: String?

The title.

expect val title: String?

The title.

actual val title: String?

The title.

Link copied to clipboard

The arguments of the localized title.

The arguments of the localized title.

The arguments of the localized title.

Link copied to clipboard

The key of the localized title in the app's string resources.

The key of the localized title in the app's string resources.

The key of the localized title in the app's string resources.

Link copied to clipboard

The vibration pattern.

The vibration pattern.

The vibration pattern.

Link copied to clipboard
actual val visibility: Int?

The Android notification visibility.

expect val visibility: Int?

The Android notification visibility.

actual val visibility: Int?

The Android notification visibility.