TrayState



A state object that can be hoisted to control tray and show notifications.

In most cases, this will be created via rememberTrayState.

Summary

Public constructors

android

Public functions

Unit

Send notification to tray.

android

Public properties

Flow<Notification>

Flow of notifications sent by sendNotification.

android

Public constructors

TrayState

TrayState()

Public functions

sendNotification

fun sendNotification(notification: Notification): Unit

Send notification to tray. If TrayState is attached to Tray, notification will be sent to the platform. If TrayState is not attached then notification will be lost.

Public properties

notificationFlow

val notificationFlowFlow<Notification>

Flow of notifications sent by sendNotification. This flow doesn't have a buffer, so all previously sent notifications will not appear in this flow.