אליהו הדס
06/29/2025, 8:17 PMval notification = notification(
title = "Hello from Compose",
message = "This notification has Compose UI elements as its images",
largeIcon = {
// Your Composable UI for large image here
},
smallIcon = {
// Your Composable UI for small icon here
},
onActivated = { println("Notification 1 activated")
) {
button(title = "Button 1") {
println("Button 1 from Screen 1 clicked")
}
button(title = "Button 2") {
println("Button 2 from Screen 1 clicked")
}
}
// Send the notification
notification.send()
✨ Features :
- Expressive DSL: Define rich notifications with a clean, declarative syntax
- Interactive Elements : Add buttons and actions with minimal boilerplate
- Callback Support: Handle notification events with simple lambda expressions
- Compose Integration: Use Composable UI elements as notification images
- Cross-Platform: Windows, macOS, and Linux support
https://github.com/kdroidFilter/DesktopNotifyKTStefan Oltmann
06/29/2025, 8:34 PMאליהו הדס
06/29/2025, 8:37 PMאליהו הדס
06/29/2025, 8:38 PM