Merge pull request #6752 from lgalabru/feature/macos-native-notifications

Send events as native macOS notifications
This commit is contained in:
Cheng Zhao 2016-08-09 21:34:52 +09:00 committed by GitHub
commit 6cd99ebf6b
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