Ir a la consola

firebase::remote_config

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.

Enumerations

ConfigSetting{
  kConfigSettingDeveloperMode
}
enum
Keys of API settings.
FetchFailureReason{
  kFetchFailureReasonInvalid,
  kFetchFailureReasonThrottled,
  kFetchFailureReasonError
}
enum
Describes the most recent fetch failure.
LastFetchStatus{
  kLastFetchStatusSuccess,
  kLastFetchStatusFailure,
  kLastFetchStatusPending
}
enum
Describes the most recent fetch request status.
ValueSource{
  kValueSourceStaticValue,
  kValueSourceRemoteValue,
  kValueSourceDefaultValue
}
enum
Describes the source a config value was retrieved from.

Functions

ActivateFetched()
bool
Applies the most recently fetched data, so that its values can be accessed.
Fetch()
Future< void >
Fetches config data from the server.
Fetch(uint64_t cache_expiration_in_seconds)
Future< void >
Fetches config data from the server.
FetchLastResult()
Future< void >
Get the (possibly still pending) results of the most recent Fetch() call.
GetBoolean(const char *key)
bool
Returns the value associated with a key, converted to a bool.
GetBoolean(const char *key, ValueInfo *info)
bool
Returns the value associated with a key, converted to a bool.
GetConfigSetting(ConfigSetting setting)
std::string
Retrieve an internal configuration setting.
GetData(const char *key)
std::vector< unsigned char >
Returns the value associated with a key, as a vector of raw byte-data.
GetData(const char *key, ValueInfo *info)
std::vector< unsigned char >
Returns the value associated with a key, as a vector of raw byte-data.
GetDouble(const char *key)
double
Returns the value associated with a key, converted to a double.
GetDouble(const char *key, ValueInfo *info)
double
Returns the value associated with a key, converted to a double.
GetInfo()
const ConfigInfo &
Returns information about the last fetch request, in the form of a ConfigInfo struct.
GetKeys()
std::vector< std::string >
Gets the set of all keys.
GetKeysByPrefix(const char *prefix)
std::vector< std::string >
Gets the set of keys that start with the given prefix.
GetLong(const char *key)
int64_t
Returns the value associated with a key, converted to a 64-bit integer.
GetLong(const char *key, ValueInfo *info)
int64_t
Returns the value associated with a key, converted to a 64-bit integer.
GetString(const char *key)
std::string
Returns the value associated with a key, converted to a string.
GetString(const char *key, ValueInfo *info)
std::string
Returns the value associated with a key, converted to a string.
Initialize(const App & app)
Initialize the RemoteConfig API.
SetConfigSetting(ConfigSetting setting, const char *value)
void
Sets an internal configuration setting.
SetDefaults(int defaults_resource_id)
void
Sets the default values, using an XML resource.
SetDefaults(const ConfigKeyValueVariant *defaults, size_t number_of_defaults)
void
Sets the default values based on a mapping of string to Variant.
SetDefaults(const ConfigKeyValue *defaults, size_t number_of_defaults)
void
Sets the default values based on a string map.
Terminate()
void
Terminate the RemoteConfig API.

Structs

firebase::remote_config::ConfigInfo

Describes the state of the most recent Fetch() call.

firebase::remote_config::ConfigKeyValue

Describes a mapping of a key to a string value.

firebase::remote_config::ConfigKeyValueVariant

Describes a mapping of a key to a value of any type.

firebase::remote_config::ValueInfo

Describes a retrieved value.

Enumerations

ConfigSetting

 ConfigSetting

Keys of API settings.

See also: SetConfigSetting See also: GetConfigSetting

Properties
kConfigSettingDeveloperMode

Set the value associated with this key to "1" to enable developer mode (i.e disable throttling) and "0" to disable.

FetchFailureReason

 FetchFailureReason

Describes the most recent fetch failure.

Properties
kFetchFailureReasonError

The most recent fetch failed for an unknown reason.

kFetchFailureReasonInvalid

The fetch has not yet failed.

kFetchFailureReasonThrottled

The most recent fetch failed because it was throttled by the server.

(You are sending too many fetch requests in too short a time.)

LastFetchStatus

 LastFetchStatus

Describes the most recent fetch request status.

Properties
kLastFetchStatusFailure

The most recent fetch request failed.