Convenience function that directly obtains an integer preference value for the specified key.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The preference key whose value you wish to obtain. The key must specify a preference whose value is of type
On return, indicates whether the preference value for the specified key was located and found to be of type
The preference data for the specified key and application. If no value was located,
0 is returned.