Documentation ¶
Overview ¶
Package golibnotify implements go bindings for libnotify to create, send, and update OS level notifications. It does not shell out to `notify-send` so it can update existing notifications as well as create new ones.
This package requires CGO and the libnotify (libnotify-dev) shared library to be installed.
On Ubuntu or Debian using apt, you can install with: sudo apt-get install libnotify-dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleNotifier ¶
type SimpleNotifier struct {
// contains filtered or unexported fields
}
SimpleNotifier is an instance of an application sending notifications
func NewSimpleNotifier ¶
func NewSimpleNotifier(applicationName string) *SimpleNotifier
NewSimpleNotifier initializes a new application to send notifications
func (*SimpleNotifier) ApplicationName ¶
func (n *SimpleNotifier) ApplicationName() string
ApplicationName returns the current application's initialized name
func (*SimpleNotifier) Close ¶
func (n *SimpleNotifier) Close() error
Close removes the notification from the OS
func (*SimpleNotifier) Show ¶
func (n *SimpleNotifier) Show(summary, body, icon string) error
Show creates a new notification and sends it to the OS
func (*SimpleNotifier) Update ¶
func (n *SimpleNotifier) Update(summary, body, icon string) error
Update an existing notification with new information