SystemPreferences
Properties
A boolean property which determines whether the app avoids using semitransparent backgrounds. This maps to NSWorkspace.accessibilityDisplayShouldReduceTransparency
A string property that can be dark, light or unknown.
Functions
A promise that resolves with true if consent was granted and false if it was denied. If an invalid mediaType is passed, the promise will be rejected. If an access request was denied and later is changed through the System Preferences pane, a restart of the app will be required for the new permissions to take effect. If access has already been requested and denied, it must be changed through the preference pane; an alert will not pop up and the promise will resolve with the existing access status.
whether or not this device has the ability to use Touch ID.
The users current system wide accent color preference in RGBA hexadecimal form.
Returns an object with system animation settings.
The system color setting in RGBA hexadecimal form (#RRGGBBAA). See the Windows docs and the macOS docs for more details.
Can be dark, light or unknown.
Can be not-determined, granted, denied, restricted or unknown.
The standard system color formatted as #RRGGBBAA.
The value of key in NSUserDefaults.
Whether the Swipe between pages setting is on.
true if the current process is a trusted accessibility client and false if it is not.
Posts event as native notifications of macOS. The userInfo is an Object that contains the user information dictionary sent along with the notification.
Posts event as native notifications of macOS. The userInfo is an Object that contains the user information dictionary sent along with the notification.
Posts event as native notifications of macOS. The userInfo is an Object that contains the user information dictionary sent along with the notification.
resolves if the user has successfully authenticated with Touch ID.
Add the specified defaults to your application's NSUserDefaults.
Removes the key in NSUserDefaults. This can be used to restore the default or global value of a key previously set with setUserDefault.
Set the value of key in NSUserDefaults.
Same as unsubscribeNotification, but removes the subscriber from NSNotificationCenter.
Removes the subscriber with id.
Same as unsubscribeNotification, but removes the subscriber from NSWorkspace.sharedWorkspace.notificationCenter.