CFPreferencesGetAppBooleanValue(_:_:_:)
Convenience function that directly obtains a Boolean preference value for the specified key.
Declaration
func CFPreferencesGetAppBooleanValue(_ key: CFString, _ applicationID: CFString, _ keyExistsAndHasValidFormat: UnsafeMutablePointer<DarwinBoolean>?) -> BoolParameters
- key:
The preference key whose value to obtain. The key must specify a preference whose value is of type
Boolean. - applicationID:
The identifier of the application whose preferences are searched, typically Kcfpreferencescurrentapplication. Do not pass
NULLor Kcfpreferencesanyapplication. Takes the form of a Java package name, such ascom.foosoft. - keyExistsAndHasValidFormat:
On return,
trueif the preference value for the specified key was located and found to be of typeBoolean, otherwisefalse.
Return Value
The preference data for the specified key and application, or if no value was located, false.