bartosz.malkowski
10/11/2021, 3:33 PMPublishSubject
. I also have @Composable
function where I want to show notification based on data received from subject. How to do that?
@Composable
fun test(component: MainComponent){
val subject: Observable<NotificationData> = component.notification
val trayState = rememberTrayState()
Tray(state = trayState,
icon = TODO())
val n = rememberNotification("Title From NotificationData", "Message from NotificationData")
trayState.sendNotification(n)
}
Alexander Kurasov[JB]
10/18/2021, 11:08 AM