Version: stable
remoteconfig.remoteconfig.init(callback)
Initialise Firebase Remote Config. Generates CONFIG_INITIALIZE or CONFIG_ERROR
PARAMETERS
callback |
function |
Function to call when a remote config event has happened |
remoteconfig.remoteconfig.fetch()
Fetches config data from the server. (Official docs https://firebase.google.com/docs/reference/cpp/class/firebase/remote-config/remote-config#fetch). Generates CONFIG_FETCHED or CONFIG_ERROR
PARAMETERS
None
remoteconfig.remoteconfig.activate()
Asynchronously activates the most recently fetched configs, so that the fetched key value pairs take effect. (Official docs https://firebase.google.com/docs/reference/cpp/class/firebase/remote-config/remote-config#activate). Generates CONFIG_ACTIVATED or CONFIG_ERROR
PARAMETERS
None
remoteconfig.remoteconfig.fetch_and_activate()
Asynchronously fetches and then activates the fetched configs. (Official docs https://firebase.google.com/docs/reference/cpp/class/firebase/remote-config/remote-config#fetchandactivate). Generates CONFIG_FETCHED and CONFIG_ACTIVATED or CONFIG_ERROR
PARAMETERS
None
remoteconfig.remoteconfig.get_boolean(key)
Returns the value associated with a key, converted to a bool. (Official docs https://firebase.google.com/docs/reference/cpp/class/firebase/remote-config/remote-config#getboolean)
PARAMETERS
key |
string |
Key of the value to be retrieved |
remoteconfig.remoteconfig.get_data(key)
Returns the value associated with a key, as a vector of raw byte-data. (Official docs https://firebase.google.com/docs/reference/cpp/class/firebase/remote-config/remote-config#getdata)
PARAMETERS
key |
string |
Key of the value to be retrieved |
remoteconfig.remoteconfig.get_number(key)
Returns the value associated with a key, converted to a double. (Official docs https://firebase.google.com/docs/reference/cpp/class/firebase/remote-config/remote-config#getdouble)
PARAMETERS
key |
string |
Key of the value to be retrieved |
remoteconfig.remoteconfig.get_string(key)
Returns the value associated with a key, converted to a string. (Official docs https://firebase.google.com/docs/reference/cpp/class/firebase/remote-config/remote-config#getstring)
PARAMETERS
key |
string |
Key of the value to be retrieved |
remoteconfig.remoteconfig.get_keys()
Gets the set of all keys. (Official docs https://firebase.google.com/docs/reference/cpp/class/firebase/remote-config/remote-config#getkeys)
PARAMETERS
None
remoteconfig.remoteconfig.set_defaults(defaults)
Sets the default values. (Official docs https://firebase.google.com/docs/reference/cpp/class/firebase/remote-config/remote-config#setdefaults)
PARAMETERS
defaults |
table |
Key-value pairs representing the default values. Generates CONFIG_DEFAULTS_SET or CONFIG_ERROR |
remoteconfig.remoteconfig.set_minimum_fetch_interval(minimum_fetch_interval)
Sets the minimum fetch interval. (Official docs https://firebase.google.com/docs/reference/cpp/struct/firebase/remote-config/config-settings)
PARAMETERS
minimum_fetch_interval |
int |
The minimum interval in milliseconds between successive fetch calls. Generates SETTINGS_UPDATED or SETTINGS_ERROR |
Event generated when remote config has been initialized and is ready for use
Event generated when an error occurred.
Event generated when the default values have been set
Event generated when the remote config has been fetched
Event generated when the remote config has been activated
Event generated when remote config settings have been updated
Event generated when an error occurred during updating settings