feat: On macOS, Closing Notifications Triggers the 'close' Event (#13306)
* feat(macOS): implement NotificationDismissed() for Cocoa * feat(macOS): emit NotificationDismissed() when closing "Alert" notifications * feat(macOS): emit NotificationDismissed() when closing "Banner" notifications * fix(macos): Remove calls to private APIs from MAS builds (github.com/electron/electron/pull/13306)
This commit is contained in:
parent
c0959bd534
commit
23541b5b2a
3 changed files with 32 additions and 0 deletions
|
@ -31,6 +31,7 @@ class CocoaNotification : public Notification {
|
|||
void NotificationActivated();
|
||||
void NotificationActivated(NSUserNotificationAction* action)
|
||||
API_AVAILABLE(macosx(10.10));
|
||||
void NotificationDismissed();
|
||||
|
||||
NSUserNotification* notification() const { return notification_; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue