SCDynamicStore
Overview
The SCDynamicStore programming interface provides access to the key-value pairs in the dynamic store of a running system. The dynamic store contains, among other items, a copy of the configuration settings for the currently active set (which is sometimes refered to as the location) and information about the current network state.
The functions in the SCDynamicStore programming interface allow you to find key-value pairs, add or remove key-value pairs, add or change values, and request notifications. Note that these functions follow Core Foundation function-name conventions. A function that has “Create” or “Copy” in its name returns a reference you must release with the CFRelease function.
To use these functions, you must first establish a dynamic store session using the SCDynamicStoreCreate(_:_:_:_:) function. When you are finished with the session, use CFRelease to close it.
Topics
Creating a Dynamic Store Session
Adding or Updating Keys and Values
SCDynamicStoreAddTemporaryValue(_:_:_:)SCDynamicStoreAddValue(_:_:_:)SCDynamicStoreSetMultiple(_:_:_:_:)SCDynamicStoreSetValue(_:_:_:)
Getting Keys and Values
SCDynamicStoreCopyKeyList(_:_:)SCDynamicStoreCopyMultiple(_:_:_:)SCDynamicStoreCopyNotifiedKeys(_:)SCDynamicStoreCopyValue(_:_:)
Monitoring Keys and Values
SCDynamicStoreNotifyValue(_:_:)SCDynamicStoreSetNotificationKeys(_:_:_:)SCDynamicStoreSetDispatchQueue(_:_:)
Removing Keys and Values
Creating a Run Loop Source
Getting Information About the Dynamic Store
Data Types
Constants
See Also
Reference
SCDynamicStoreCopySpecificSCDynamicStoreKeySCNetworkSCNetworkConfigurationSCNetworkConnectionSCNetworkReachabilitySCPreferencesSCPreferencesPathSCPreferencesSetSpecificSCSchemaDefinitionsSystem ConfigurationSystemConfiguration EnumerationsSystemConfiguration ConstantsSystemConfiguration FunctionsSystemConfiguration Data Types