Documentation ¶
Rendered for windows/amd64
Index ¶
- type NotificationBuilder
- type WinToast
- func (lib *WinToast) HideNotification(id int64) error
- func (lib *WinToast) Initialize(appName, aumi, originalShortcutPath string) error
- func (lib *WinToast) NewNotification(title string, content string) (*NotificationBuilder, error)
- func (lib *WinToast) SetCallbacks(activated func(id int64, actionIndex int32), ...) error
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 ¶
WinNotify holds the DLL handle.
func (*WinToast) HideNotification ¶
HideNotification hides notification
func (*WinToast) Initialize ¶
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
Click to show internal directories.
Click to hide internal directories.