2026-03-13 14:18:21 +00:00
|
|
|
// pkg/notification/messages.go
|
|
|
|
|
package notification
|
|
|
|
|
|
|
|
|
|
// QueryPermission checks notification authorisation. Result: PermissionStatus
|
|
|
|
|
type QueryPermission struct{}
|
|
|
|
|
|
|
|
|
|
// TaskSend sends a notification. Falls back to dialog if platform fails.
|
|
|
|
|
type TaskSend struct{ Opts NotificationOptions }
|
|
|
|
|
|
|
|
|
|
// TaskRequestPermission requests notification authorisation. Result: bool (granted)
|
|
|
|
|
type TaskRequestPermission struct{}
|
|
|
|
|
|
2026-04-02 13:03:55 +00:00
|
|
|
// TaskClear clears pending notifications when the backend supports it.
|
|
|
|
|
type TaskClear struct{}
|
|
|
|
|
|
2026-04-02 19:50:55 +00:00
|
|
|
// ActionNotificationClicked is broadcast when a notification is clicked.
|
2026-03-13 14:18:21 +00:00
|
|
|
type ActionNotificationClicked struct{ ID string }
|