notification.go 358 B

1234567891011
  1. package fyne
  2. // Notification represents a user notification that can be sent to the operating system.
  3. type Notification struct {
  4. Title, Content string
  5. }
  6. // NewNotification creates a notification that can be passed to App.SendNotification.
  7. func NewNotification(title, content string) *Notification {
  8. return &Notification{Title: title, Content: content}
  9. }