niotify/niotify_unsupported.go

20 lines
412 B
Go
Raw Normal View History

2020-06-20 16:00:04 -04:00
//+build !linux,!android
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
}