adam-gui/vendor/fyne.io/fyne/v2/notification.go

12 lines
358 B
Go
Raw Permalink Normal View History

2024-04-29 19:13:50 +02:00
package fyne
// Notification represents a user notification that can be sent to the operating system.
type Notification struct {
Title, Content string
}
// NewNotification creates a notification that can be passed to App.SendNotification.
func NewNotification(title, content string) *Notification {
return &Notification{Title: title, Content: content}
}