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)
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
Click to show internal directories.
Click to hide internal directories.