wintoast

package
v1.6.21 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: GPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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