types

package
v0.0.0-...-81d58bd Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	AppName string
	Title   string
	Message string
	Icon    string
	Timeout int32
	Action  NotificationAction
}

Notification represents a desktop notification.

func NewNotification

func NewNotification(appName, title, message, icon string, timeout int32, action ...NotificationAction) *Notification

NewNotification creates a new Notification instance.

type NotificationAction

type NotificationAction struct {
	Label    string
	Callback func()
}

NotificationAction represents a desktop notification button.

func NewNotificationAction

func NewNotificationAction(label string, callback func()) NotificationAction

NewNotificationAction creates a new NotificationAction instance.

Jump to

Keyboard shortcuts

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