Builder

actual class Builder(to: String)(source)

Builds a RemoteMessage addressed to to.

expect class Builder(to: String)(source)

Builds a RemoteMessage addressed to to.

actual class Builder(to: String)(source)

Builds a RemoteMessage addressed to to.

Constructors

Link copied to clipboard
actual constructor(to: String)
expect constructor(to: String)
actual constructor(to: String)

Functions

Link copied to clipboard
actual fun addData(key: String, value: String?): RemoteMessage.Builder

Adds a data entry; a null value removes the key.

expect fun addData(key: String, value: String?): RemoteMessage.Builder

Adds a data entry; a null value removes the key.

actual fun addData(key: String, value: String?): RemoteMessage.Builder

Adds a data entry; a null value removes the key.

Link copied to clipboard
actual fun build(): RemoteMessage
expect fun build(): RemoteMessage
actual fun build(): RemoteMessage
Link copied to clipboard

Removes all data entries.

Removes all data entries.

Removes all data entries.

Link copied to clipboard
actual fun setCollapseKey(collapseKey: String?): RemoteMessage.Builder
expect fun setCollapseKey(collapseKey: String?): RemoteMessage.Builder
actual fun setCollapseKey(collapseKey: String?): RemoteMessage.Builder
Link copied to clipboard

Replaces the data payload.

Replaces the data payload.

Replaces the data payload.

Link copied to clipboard
actual fun setMessageId(messageId: String): RemoteMessage.Builder
expect fun setMessageId(messageId: String): RemoteMessage.Builder
actual fun setMessageId(messageId: String): RemoteMessage.Builder
Link copied to clipboard
actual fun setMessageType(messageType: String?): RemoteMessage.Builder
expect fun setMessageType(messageType: String?): RemoteMessage.Builder
actual fun setMessageType(messageType: String?): RemoteMessage.Builder
Link copied to clipboard
actual fun setTtl(ttl: Int): RemoteMessage.Builder

The time to live in seconds, from 0 to 86400 (a day).

expect fun setTtl(ttl: Int): RemoteMessage.Builder

The time to live in seconds, from 0 to 86400 (a day).

actual fun setTtl(ttl: Int): RemoteMessage.Builder

The time to live in seconds, from 0 to 86400 (a day).