Namespace: firebase
Language: Lua
Type: Extension
Functions and constants for interacting with Firebase
Type: FUNCTION Initialise Firebase Remote Config. Generates MSG_INITIALIZED or MSG_ERROR
Type: FUNCTION
Sets a callback function for receiving events from the SDK. Call firebase.set_callback(nil) to remove callback
Parameters
callback (function) - Callback function that is executed on any event in the SDK.
self (object) - The calling script instancemessage_id (number) - One of message types: firebase.remoteconfig.MSG_INITIALIZED firebase.remoteconfig.MSG_INSTALLATION_AUTH_TOKEN firebase.remoteconfig.MSG_INSTALLATION_ID firebase.remoteconfig.MSG_DEFAULTS_SET firebase.remoteconfig.MSG_FETCHED firebase.remoteconfig.MSG_ACTIVATED firebase.remoteconfig.MSG_SETTINGS_UPDATED firebase.remoteconfig.MSG_ERRORmessage (table) - A table holding the data
error (string) - The error message (if an error occurred or nil otherwise)Type: FUNCTION Fetches config data from the server. Generates MSG_FETCHED or MSG_ERROR
Type: FUNCTION Asynchronously activates the most recently fetched configs, so that the fetched key value pairs take effect. Generates MSG_ACTIVATED or MSG_ERROR
Type: FUNCTION Asynchronously fetches and then activates the fetched configs. Generates MSG_FETCHED and MSG_ACTIVATED or MSG_ERROR
Type: FUNCTION Returns the value associated with a key, converted to a bool.
Parameters
key (string) - Key of the value to be retrievedType: FUNCTION Returns the value associated with a key, as a vector of raw byte-data.
Parameters
key (string) - Key of the value to be retrievedType: FUNCTION Returns the value associated with a key, converted to a double.
Parameters
key (string) - Key of the value to be retrievedType: FUNCTION Returns the value associated with a key, converted to a string.
Parameters
key (string) - Key of the value to be retrievedType: FUNCTION Gets the set of all keys.
Type: FUNCTION Sets the default values.
Parameters
defaults (table) - Key-value pairs representing the default values. Generates MSG_DEFAULTS_SET or MSG_ERRORType: FUNCTION Sets the minimum fetch interval.
Parameters
minimum_fetch_interval (int) - The minimum interval in milliseconds between successive fetch calls. Generates MSG_SETTINGS_UPDATED or MSG_ERRORType: FUNCTION Sets the timeout that specifies how long the client should wait for a connection to the Firebase Remote Config servers
Parameters
minimum_fetch_interval (int) - The timeout interval in milliseconds. Generates MSG_SETTINGS_UPDATED or MSG_ERRORType: VARIABLE Event generated when remote config has been initialized and is ready for use
Type: VARIABLE Event generated when an error occurred.
Type: VARIABLE Event generated when the default values have been set
Type: VARIABLE Event generated when the remote config has been fetched
Type: VARIABLE Event generated when the remote config has been activated
Type: VARIABLE Event generated when remote config settings have been updated
### Type: TABLE Functions and constants for interacting with Firebase Remote Config