wintoast

package
v1.6.27 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationBuilder

type NotificationBuilder struct {
	// contains filtered or unexported fields
}

func (*NotificationBuilder) AddButton

func (n *NotificationBuilder) AddButton(text string) error

func (*NotificationBuilder) Delete

func (n *NotificationBuilder) Delete()

func (*NotificationBuilder) SetImage

func (n *NotificationBuilder) SetImage(iconPath string) error

func (*NotificationBuilder) SetSound

func (n *NotificationBuilder) SetSound(option int, path int) error

func (*NotificationBuilder) Show

func (n *NotificationBuilder) Show() (int64, error)

type WinToast

type WinToast struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

WinNotify holds the DLL handle.

func New

func New(dllPath string) (*WinToast, error)

func (*WinToast) HideNotification

func (lib *WinToast) HideNotification(id int64) error

HideNotification hides notification

func (*WinToast) Initialize

func (lib *WinToast) Initialize(appName, aumi, originalShortcutPath string) error

func (*WinToast) NewNotification

func (lib *WinToast) NewNotification(title string, content string) (*NotificationBuilder, error)

NewNotification starts a creation of new notification. NotificationBuilder.Delete should allays be called when done using the object or there will be memory leeks

func (*WinToast) SetCallbacks

func (lib *WinToast) SetCallbacks(activated func(id int64, actionIndex int32), dismissed func(id int64, reason int32), failed func(id int64, reason int32)) error

Jump to

Keyboard shortcuts

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