Skip to content

Commit

Permalink
docs: systemPreferences.subscribeWorkspaceNotification return type (#…
Browse files Browse the repository at this point in the history
…28612)

Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com>
  • Loading branch information
trop[bot] and samuelmaddock committed Apr 12, 2021
1 parent 6252a9f commit 491e391
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api/system-preferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ This is necessary for events such as `NSUserDefaultsDidChangeNotification`.
* `userInfo` Record<String, unknown>
* `object` String

Returns `Number` - The ID of this subscription

Same as `subscribeNotification`, but uses `NSWorkspace.sharedWorkspace.notificationCenter`.
This is necessary for events such as `NSWorkspaceDidActivateApplicationNotification`.

Expand Down

0 comments on commit 491e391

Please sign in to comment.