RemoteMessage

actual class RemoteMessage(source)
expect class RemoteMessage(source)

A message received from, or (with Builder) sent to, Firebase Cloud Messaging, as the Android SDK's RemoteMessage. On Android the SDK delivers received messages to a FirebaseMessagingService; the other platforms receive messages through their own notification APIs, so there a RemoteMessage only comes from Builder.

actual class RemoteMessage(source)

Types

Link copied to clipboard
actual class Builder(to: String)
expect class Builder(to: String)

Builds a RemoteMessage addressed to to.

actual class Builder(to: String)
Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion
Link copied to clipboard
actual annotation class MessagePriority
expect annotation class MessagePriority

The priorities of a message; the Android SDK's @IntDef.

actual annotation class MessagePriority
Link copied to clipboard
actual class Notification
expect class Notification

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

Properties

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

The collapse key, if any.

actual val collapseKey: String?
Link copied to clipboard
actual val data: Map<String, String>
expect val data: Map<String, String>

The data payload.

actual val data: Map<String, String>

The application's data: the Android SDK's getData() leaves out the google./gcm. keys and from, message_type and collapse_key.

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

The sender, if any.

actual val from: String?
Link copied to clipboard
actual val messageId: String?
expect val messageId: String?

The message id, if any.

actual val messageId: String?
Link copied to clipboard
actual val messageType: String?
expect val messageType: String?

The message type, if any.

actual val messageType: String?
Link copied to clipboard

The notification payload, if the message carries one.

Link copied to clipboard
actual val originalPriority: Int
expect val originalPriority: Int

The priority the message was sent with; one of the PRIORITY_* constants.

actual val originalPriority: Int
Link copied to clipboard
actual val priority: Int
expect val priority: Int

The priority the message was delivered with; one of the PRIORITY_* constants.

actual val priority: Int
Link copied to clipboard
actual val senderId: String?
expect val senderId: String?

The sender id.

actual val senderId: String?
Link copied to clipboard
actual val sentTime: Long
expect val sentTime: Long

When the message was sent, in milliseconds since the epoch.

actual val sentTime: Long
Link copied to clipboard
actual val to: String?
expect val to: String?

The recipient.

actual val to: String?
Link copied to clipboard
actual val ttl: Int
expect val ttl: Int

The time to live in seconds.

actual val ttl: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String