niotify/niotify_unsupported.go

20 lines
420 B
Go
Raw Normal View History

2020-06-26 21:29:29 -04:00
//+build !linux,!android,!darwin
2020-06-20 16:00:04 -04:00
package niotify
type unsupportedManager struct{}
func newManager() (Manager, error) {
return Manager{unsupportedManager{}}, nil
}
func (u unsupportedManager) CreateNotification(title, text string) (*Notification, error) {
return &Notification{unsupportedNotification{}}, nil
}
type unsupportedNotification struct{}
func (u unsupportedNotification) Cancel() error {
return nil
}