2024-02-04 00:49:42 +01:00
|
|
|
//go:build windows
|
|
|
|
|
|
|
|
package notify
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2024-02-04 00:56:55 +01:00
|
|
|
"github.com/go-toast/toast"
|
2024-02-04 00:49:42 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func Notify(title string, body string, actionName string, timeout time.Duration, onclose func()) error {
|
|
|
|
notification := toast.Notification{
|
|
|
|
AppID: "Goldwarden",
|
|
|
|
Title: title,
|
|
|
|
Message: body,
|
|
|
|
Audio: toast.Silent,
|
|
|
|
}
|
|
|
|
|
|
|
|
return notification.Push()
|
|
|
|
}
|
|
|
|
|
|
|
|
func ListenForNotifications() error {
|
|
|
|
return nil
|
|
|
|
}
|