🍎 Send events as native macOS notifications

This commit is contained in:
Ludovic Galabru 2016-08-05 23:02:59 +02:00
parent 5eeadb0ad4
commit 38cc56efee
4 changed files with 50 additions and 0 deletions

View file

@ -17,6 +17,22 @@ This method returns `true` if the system is in Dark Mode, and `false` otherwise.
This method returns `true` if the Swipe between pages setting is on, and `false` otherwise.
### `systemPreferences.postNotification(event, userInfo)` _macOS_
* `event` String
* `userInfo` Dictionary
Posts `event` as native notifications of macOS. The `userInfo` is an Object
that contains the user information dictionary sent along with the notification.
### `systemPreferences.postLocalNotification(event, userInfo)` _macOS_
* `event` String
* `userInfo` Dictionary
Posts `event` as native notifications of macOS. The `userInfo` is an Object
that contains the user information dictionary sent along with the notification.
### `systemPreferences.subscribeNotification(event, callback)` _macOS_
* `event` String