Applies fetched Config data to Active Config, causing updates to the behavior and appearance of the app to take effect (depending on how config data is used in the app). Returns true if FetchedConfig has been applied to RemoteConfig or if there is no FetchedConfig. Returns false if FetchedConfig is newer than RemoteConfig.
| - (nonnull NSArray *) allKeysFromSource: |
|
(FIRRemoteConfigSource) |
source |
| namespace: |
|
(nullable NSString *) |
aNamespace |
|
|
| |
Gets all the parameter keys from a given source and a given namespace.
- Parameters
-
| source | The config data source. |
| aNamespace | The config data namespace. |
- Returns
- An array of keys under the given source and namespace.
Gets the config value of the default namespace.
- Parameters
-
Gets the config value of a given namespace.
- Parameters
-
| key | Config key. |
| aNamespace | Config results under a given namespace. |
Gets the config value of a given namespace and a given source.
- Parameters
-
| key | Config key. |
| aNamespace | Config results under a given namespace. |
| source | Config value source. |
| - (void) fetchWithCompletionHandler: |
|
(nullable FIRRemoteConfigFetchCompletion) |
completionHandler |
|
Fetches Remote Config data with a callback.
- Parameters
-
| completionHandler | Fetch operation callback. |
| - (void) fetchWithExpirationDuration: |
|
(NSTimeInterval) |
expirationDuration |
| completionHandler: |
|
(nullable FIRRemoteConfigFetchCompletion) |
completionHandler |
|
|
| |
Fetches Remote Config data and sets a duration that specifies how long config data lasts.
- Parameters
-
| expirationDuration | Duration that defines how long fetched config data is available, in seconds. When the config data expires, a new fetch is required. |
| completionHandler | Fetch operation callback. |
| + (remoteConfig() NS_SWIFT_NAME |
|
|
|
Returns the FIRRemoteConfig instance shared throughout your app. This singleton object contains the complete set of Remote Config parameter values available to the app, including the Active Config and Default Config. This object also caches values fetched from the Remote Config Server until they are copied to the Active Config by calling activateFetched. When you fetch values from the Remote Config Server using the default Firebase namespace service, you should use this class method to create a shared instance of the FIRRemoteConfig object to ensure that your app will function properly with the Remote Config Server and the Firebase service.
Enables access to configuration values by using object subscripting syntax. This is used to get the config value of the default namespace.
// Example:
FIRRemoteConfig *config = [FIRRemoteConfig remoteConfig];
FIRRemoteConfigValue *value = config["yourKey"];
BOOL b = value.boolValue;
NSNumber *number = config["yourKey"].numberValue;
| - (void) setDefaults: |
|
(nullable NSDictionary< NSString *, NSObject * > *) |
defaults |
|
Sets config defaults for parameter keys and values in the default namespace config.
- Parameters
-
| defaultConfig | A dictionary mapping a NSString * key to a NSObject * value. |
| - (void) setDefaults: |
|
(nullable NSDictionary< NSString *, NSObject * > *) |
defaultConfig |
| namespace: |
|
(nullable NSString *) |
aNamespace |
|
|
| |
Sets config defaults for parameter keys and values in the default namespace config.
- Parameters
-
| defaultConfig | A dictionary mapping a NSString * key to a NSObject * value. |
| aNamespace | Config under a given namespace. |
| - (void) setDefaultsFromPlistFileName: |
|
(nullable NSString *) |
fileName |
|
Sets default configs from plist for default namespace;
- Parameters
-
| fileName | The plist file name, with no file name extension. For example, if the plist file is defaultSamples.plist, call: [[FIRRemoteConfig remoteConfig] setDefaultsFromPlistFileName:"defaultSamples"]; |
Sets default configs from plist for a given namespace;
- Parameters
-
| fileName | The plist file name, with no file name extension. For example, if the plist file is defaultSamples.plist, call: [[FIRRemoteConfig remoteConfig] setDefaultsFromPlistFileName:"defaultSamples"]; |
| aNamespace | The namespace where the default config is set. |
The documentation for this class was generated from the following file: