Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct { AppName string Title string Message string Icon string Timeout int32 Action NotificationAction }
Notification represents a desktop notification.
func NewNotification ¶
func NewNotification(appName, title, message, icon string, timeout int32, action ...NotificationAction) *Notification
NewNotification creates a new Notification instance.
type NotificationAction ¶
type NotificationAction struct { Label string Callback func() }
NotificationAction represents a desktop notification button.
func NewNotificationAction ¶
func NewNotificationAction(label string, callback func()) NotificationAction
NewNotificationAction creates a new NotificationAction instance.
Click to show internal directories.
Click to hide internal directories.