Notification

data class Notification

Push-message notification

Functions

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun withCount(value: Int): Notification

Adds notification count (badge)

Link copied to clipboard
fun withIconResource(name: String): Notification

Adds notification icon.

Link copied to clipboard
fun withImage(value: String): Notification

Adds notification image URI. May be a link to download or an app resource: resource://icon.png

Link copied to clipboard
fun withImageResource(name: String): Notification

Adds notification image resource. Effectively sets Notification.imageUri to name with resource:/ scheme

Link copied to clipboard
fun withLargeIcon(value: String): Notification

Adds notification large icon URI. May be a link to download or an app resource: resource://icon.png

Link copied to clipboard
fun withLargeIconResource(name: String): Notification

Adds notification large icon resource. Effectively sets Notification.largeIconUri to name with resource:/ scheme

Link copied to clipboard
fun withSound(name: String): Notification

Adds notification sound.

Link copied to clipboard
fun withTopic(value: String): Notification

Sets a topic. If set, a notification will replace already existing one with the same topic

Properties

Link copied to clipboard
val count: Int

Number of collapsed notifications

Link copied to clipboard
val icon: String?

Notification icon. A resource identifier for sound asset bundled with application.

Link copied to clipboard
val imageUri: String?

Notification image URI. May be a link to download or an app resource: resource://icon.png

Link copied to clipboard
val largeIconUri: String?

Large icon URI. May be a link to download or an app resource: resource://icon.png

Link copied to clipboard
val sound: String?

Notification sound. A resource identifier for sound asset bundled with application.

Link copied to clipboard
val text: LocalizedText

Notification text

Link copied to clipboard
val title: LocalizedText

Notification title

Link copied to clipboard
val topic: String?

If set, a notification will replace already existing one with the same topic