mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Specifiy function param types in docs
This commit is contained in:
@@ -63,6 +63,8 @@ that contains the user information dictionary sent along with the notification.
|
||||
|
||||
* `event` String
|
||||
* `callback` Function
|
||||
* `event` String
|
||||
* `userInfo` Object
|
||||
|
||||
Subscribes to native notifications of macOS, `callback` will be called with
|
||||
`callback(event, userInfo)` when the corresponding `event` happens. The
|
||||
@@ -90,6 +92,8 @@ Removes the subscriber with `id`.
|
||||
|
||||
* `event` String
|
||||
* `callback` Function
|
||||
* `event` String
|
||||
* `userInfo` Object
|
||||
|
||||
Same as `subscribeNotification`, but uses `NSNotificationCenter` for local defaults.
|
||||
This is necessary for events such as `NSUserDefaultsDidChangeNotification`
|
||||
|
||||
Reference in New Issue
Block a user