notice

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

notice is a cross-platform system notification library notice 是一个跨平台的系统通知库

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendNotification

func SendNotification(n *Notification)

func SetUniqueID

func SetUniqueID(v string)

func UniqueID

func UniqueID() string

Types

type Notification

type Notification struct {
	Title, Content string
	Icon           []byte

	Timeout int32
	// contains filtered or unexported fields
}

Notification 表示可发送到操作系统的用户通知

func NewNotification

func NewNotification(title, content string) *Notification

NewNotification 创建一个通知,可以传递给SendNotification

func (*Notification) SetIcon

func (m *Notification) SetIcon(iconResourcePath string) *Notification

func (*Notification) SetIconFS

func (m *Notification) SetIconFS(iconResourcePath string) *Notification

func (*Notification) SetTimeout

func (m *Notification) SetTimeout(v int32) *Notification

Jump to

Keyboard shortcuts

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