We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d158cce commit 67c7554Copy full SHA for 67c7554
1 file changed
docs/api/system-preferences.md
@@ -67,6 +67,8 @@ that contains the user information dictionary sent along with the notification.
67
* `callback` Function
68
* `event` String
69
* `userInfo` Object
70
+
71
+Returns `Number` - The ID of this subscription
72
73
Subscribes to native notifications of macOS, `callback` will be called with
74
`callback(event, userInfo)` when the corresponding `event` happens. The
@@ -96,6 +98,8 @@ Removes the subscriber with `id`.
96
98
97
99
100
101
102
103
104
Same as `subscribeNotification`, but uses `NSNotificationCenter` for local defaults.
105
This is necessary for events such as `NSUserDefaultsDidChangeNotification`.
0 commit comments