mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
update comments
This commit is contained in:
parent
c1230d4b86
commit
9eab58f0d2
1 changed files with 3 additions and 2 deletions
|
|
@ -69,8 +69,8 @@ func (ns *Service) CheckNotificationAuthorization() bool {
|
|||
return true
|
||||
}
|
||||
|
||||
// SendNotification sends a basic notification with a name, title, and body.
|
||||
// (subtitle is only available on macOS)
|
||||
// SendNotification sends a basic notification with a name, title, and body. All other options are ignored on Windows.
|
||||
// (subtitle, category id, and data are only available on macOS)
|
||||
func (ns *Service) SendNotification(options NotificationOptions) error {
|
||||
n := toast.Notification{
|
||||
AppID: options.ID,
|
||||
|
|
@ -88,6 +88,7 @@ func (ns *Service) SendNotification(options NotificationOptions) error {
|
|||
// SendNotificationWithActions sends a notification with additional actions and inputs.
|
||||
// A NotificationCategory must be registered with RegisterNotificationCategory first. The `CategoryID` must match the registered category.
|
||||
// If a NotificationCategory is not registered a basic notification will be sent.
|
||||
// (subtitle, category id, and data are only available on macOS)
|
||||
func (ns *Service) SendNotificationWithActions(options NotificationOptions) error {
|
||||
nCategory := NotificationCategories[options.CategoryID]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue