Firebase. RemoteConfig. FirebaseRemoteConfig
Firebase Remote Config API.
Summary
Firebase Remote Config is a cloud service that lets you change the appearance and behavior of your app without requiring users to download an app update.
Properties |
|
|---|---|
DefaultCacheExpiration
|
static System.TimeSpan
The default cache expiration used by Fetch(), equal to 12 hours.
|
Info
|
static ConfigInfo
A ConfigInfo struct, containing fields reflecting the state of the most recent fetch request.
|
Keys
|
static global::System.Collections.Generic.IEnumerable< string >
The set of all Remote Config parameter keys in the default namespace.
|
Settings
|
static ConfigSettings
Gets and sets the configuration settings for operations.
|
Public static functions |
|
|---|---|
ActivateFetched()
|
bool
|
FetchAsync()
|
|
FetchAsync(System.TimeSpan cacheExpiration)
|
Fetches config data from the server.
|
GetKeys(string configNamespace)
|
global::System.Collections.Generic.IEnumerable< string >
|
GetKeysByPrefix(string prefix)
|
global::System.Collections.Generic.IEnumerable< string >
|
GetKeysByPrefix(string prefix, string configNamespace)
|
global::System.Collections.Generic.IEnumerable< string >
|
GetValue(string key, string configNamespace)
|
Gets the ConfigValue corresponding to the specified key.
|
SetDefaults(System.Collections.Generic.IDictionary< string, object > defaults)
|
void
Sets the default values based on a string dictionary.
|
SetDefaults(System.Collections.Generic.IDictionary< string, object > defaults, string config_namespace)
|
void
Sets the default values based on a string dictionary.
|
Properties
DefaultCacheExpiration
static System.TimeSpan DefaultCacheExpiration
The default cache expiration used by Fetch(), equal to 12 hours.
Info
static ConfigInfo Info
A ConfigInfo struct, containing fields reflecting the state of the most recent fetch request.
Keys
static global::System.Collections.Generic.IEnumerable< string > Keys
The set of all Remote Config parameter keys in the default namespace.
Settings
static ConfigSettings Settings
Gets and sets the configuration settings for operations.
Get returns a copy of the current settings; to change the settings a ConfigSettings with the new settings needs to be set.
Public static functions
ActivateFetched
bool ActivateFetched()
FetchAsync
System.Threading.Tasks.Task FetchAsync()
FetchAsync
System.Threading.Tasks.Task FetchAsync( System.TimeSpan cacheExpiration )
Fetches config data from the server.
Note:This does not actually apply the data or make it accessible, it merely retrieves it and caches it. To accept and access the newly retrieved values, you must call ActivateFetched(). Note that this function is asynchronous, and will normally take an unspecified amount of time before completion.
| Details | |||
|---|---|---|---|
| Parameters |
|
||
| Returns |
A Task which can be used to determine when the fetch is complete.
|
GetKeys
global::System.Collections.Generic.IEnumerable< string > GetKeys( string configNamespace )
GetKeysByPrefix
global::System.Collections.Generic.IEnumerable< string > GetKeysByPrefix( string prefix )
GetKeysByPrefix
global::System.Collections.Generic.IEnumerable< string > GetKeysByPrefix( string prefix, string configNamespace )
GetValue
ConfigValue GetValue( string key, string configNamespace )
Gets the ConfigValue corresponding to the specified key.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
||||
| Returns |
The ConfigValue associated with the specified key and namespace.
|
SetDefaults
void SetDefaults( System.Collections.Generic.IDictionary< string, object > defaults )
Sets the default values based on a string dictionary.
Note:This completely overrides all previous values in the default namespace.
| Details | |||
|---|---|---|---|
| Parameters |
|
SetDefaults
void SetDefaults( System.Collections.Generic.IDictionary< string, object > defaults, string config_namespace )
Sets the default values based on a string dictionary.
Note:This completely overrides all previous values in the specified namespace.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|

