docs: add return type for subscribeNotification (#15490)
This commit is contained in:
parent
6d2a088be9
commit
86064a7bd8
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,8 @@ that contains the user information dictionary sent along with the notification.
|
||||||
* `event` String
|
* `event` String
|
||||||
* `userInfo` Object
|
* `userInfo` Object
|
||||||
|
|
||||||
|
Returns `Number` - The ID of this subscription
|
||||||
|
|
||||||
Subscribes to native notifications of macOS, `callback` will be called with
|
Subscribes to native notifications of macOS, `callback` will be called with
|
||||||
`callback(event, userInfo)` when the corresponding `event` happens. The
|
`callback(event, userInfo)` when the corresponding `event` happens. The
|
||||||
`userInfo` is an Object that contains the user information dictionary sent
|
`userInfo` is an Object that contains the user information dictionary sent
|
||||||
|
@ -113,6 +115,8 @@ example values of `event` are:
|
||||||
* `event` String
|
* `event` String
|
||||||
* `userInfo` Object
|
* `userInfo` Object
|
||||||
|
|
||||||
|
Returns `Number` - The ID of this subscription
|
||||||
|
|
||||||
Same as `subscribeNotification`, but uses `NSNotificationCenter` for local defaults.
|
Same as `subscribeNotification`, but uses `NSNotificationCenter` for local defaults.
|
||||||
This is necessary for events such as `NSUserDefaultsDidChangeNotification`.
|
This is necessary for events such as `NSUserDefaultsDidChangeNotification`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue