dbusnotify

package
v0.0.0-...-17244d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyNotifier

func DestroyNotifier(obj *Notifier)

Types

type Notifier

type Notifier struct {
	Path     dbus.ObjectPath
	DestName string
	// contains filtered or unexported fields
}

func NewNotifier

func NewNotifier(destName string, path dbus.ObjectPath) (*Notifier, error)

func (*Notifier) CloseNotification

func (obj *Notifier) CloseNotification(id uint32) (_err error)

func (*Notifier) ConnectActionInvoked

func (obj *Notifier) ConnectActionInvoked(callback func(id uint32, action_key string)) func()

func (*Notifier) ConnectNotificationClosed

func (obj *Notifier) ConnectNotificationClosed(callback func(id uint32, reason uint32)) func()

func (*Notifier) GetCapabilities

func (obj *Notifier) GetCapabilities() (caps []string, _err error)

func (*Notifier) GetServerInformation

func (obj *Notifier) GetServerInformation() (name string, vendor string, version string, spec_version string, _err error)

func (*Notifier) Notify

func (obj *Notifier) Notify(app_name string, id uint32, icon string, summary string, body string, actions []string, hints map[string]dbus.Variant, timeout int32) (id_ uint32, _err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL