Notification

actual class Notification(source)
expect class Notification(source)

The notification payload of a message, as the Android SDK's RemoteMessage.Notification; imageUrl and link are Uris (the firebase-app stand-in off Android).

actual class Notification(source)

Properties

Link copied to clipboard
actual val body: String?
expect val body: String?

The body text.

actual val body: String? = null
Link copied to clipboard

The arguments of the localized body.

actual val bodyLocalizationArgs: Array<String>? = null
Link copied to clipboard

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

actual val bodyLocalizationKey: String? = null
Link copied to clipboard
actual val channelId: String?
expect val channelId: String?

The Android notification channel.

actual val channelId: String? = null
Link copied to clipboard
actual val clickAction: String?
expect val clickAction: String?

The action taken when the notification is tapped.

actual val clickAction: String? = null
Link copied to clipboard
actual val color: String?
expect val color: String?

The notification colour, as #rrggbb.

actual val color: String? = null
Link copied to clipboard

Whether the default light settings are used.

actual val defaultLightSettings: Boolean = false
Link copied to clipboard
actual val defaultSound: Boolean
expect val defaultSound: Boolean

Whether the default sound is used.

actual val defaultSound: Boolean = false
Link copied to clipboard

Whether the default vibration settings are used.

actual val defaultVibrateSettings: Boolean = false
Link copied to clipboard
actual val eventTime: Long?
expect val eventTime: Long?

The event time, in milliseconds since the epoch.

actual val eventTime: Long? = null
Link copied to clipboard
actual val icon: String?
expect val icon: String?

The icon resource name.

actual val icon: String? = null
Link copied to clipboard
actual val imageUrl: <Error class: unknown class>?
expect val imageUrl: <Error class: unknown class>?

The URL of the notification image, if any.

actual val imageUrl: <Error class: unknown class>? = null
Link copied to clipboard
actual val lightSettings: IntArray?
expect val lightSettings: IntArray?

The LED colour, on and off durations.

actual val lightSettings: IntArray? = null
Link copied to clipboard
actual val link: <Error class: unknown class>?
expect val link: <Error class: unknown class>?

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

actual val link: <Error class: unknown class>? = null
Link copied to clipboard
actual val localOnly: Boolean
expect val localOnly: Boolean

Whether the notification is local to the device.

actual val localOnly: Boolean = false
Link copied to clipboard
actual val notificationCount: Int?
expect val notificationCount: Int?

The number of items the notification represents.

actual val notificationCount: Int? = null
Link copied to clipboard

The Android notification priority.

actual val notificationPriority: Int? = null
Link copied to clipboard
actual val sound: String?
expect val sound: String?

The sound resource name.

actual val sound: String? = null
Link copied to clipboard
actual val sticky: Boolean
expect val sticky: Boolean

Whether the notification persists when tapped.

actual val sticky: Boolean = false
Link copied to clipboard
actual val tag: String?
expect val tag: String?

The notification tag.

actual val tag: String? = null
Link copied to clipboard
actual val ticker: String?
expect val ticker: String?

The ticker text.

actual val ticker: String? = null
Link copied to clipboard
actual val title: String?
expect val title: String?

The title.

actual val title: String? = null
Link copied to clipboard

The arguments of the localized title.

actual val titleLocalizationArgs: Array<String>? = null
Link copied to clipboard

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

actual val titleLocalizationKey: String? = null
Link copied to clipboard

The vibration pattern.

actual val vibrateTimings: LongArray? = null
Link copied to clipboard
actual val visibility: Int?
expect val visibility: Int?

The Android notification visibility.

actual val visibility: Int? = null