Notification

sealed interface Notification

A notification can be of type Message or State.

Inheritors

Types

Link copied to clipboard
data class Message(val id: String, val sortKey: String, val actions: Set<PushAction>, val dismissed: Boolean, val timelineEvent: TimelineEvent) : Notification
Link copied to clipboard
data class State(val id: String, val sortKey: String, val actions: Set<PushAction>, val dismissed: Boolean, val stateEvent: ClientEvent.StateBaseEvent<*>) : Notification

Properties

Link copied to clipboard
abstract val actions: Set<PushAction>

The PushAction that should be performed, when the notification is created on the device.

Link copied to clipboard
abstract val dismissed: Boolean

Indicates, that a user has dismissed a notification on the device.

Link copied to clipboard
abstract val id: String

Unique identifier, that can be used for various operations in NotificationService.

Link copied to clipboard
abstract val sortKey: String

Can be used to sort the notification.