Index
Properties
app
The app associated with the Performance
service
instance.
defaultConfig
Object containing default values for configs.
Type declaration
-
[key: string]: string | number | boolean
fetchTimeMillis
The Unix timestamp in milliseconds of the last successful fetch, or negative one if the RemoteConfig instance either hasn't fetched or initialization is incomplete.
lastFetchStatus
The status of the last fetch attempt.
settings
Defines configuration for the Remote Config SDK.
Methods
activate
-
Makes the last fetched config available to the getters. Returns a promise which resolves to true if the current call activated the fetched configs. If the fetched configs were already activated, the promise will resolve to false.
Returns Promise<boolean>
ensureInitialized
-
Ensures the last activated config are available to the getters.
Returns Promise<void>
fetch
-
Fetches and caches configuration from the Remote Config service.
Returns Promise<void>
fetchAndActivate
-
Performs fetch and activate operations, as a convenience. Returns a promise which resolves to true if the current call activated the fetched configs. If the fetched configs were already activated, the promise will resolve to false.
Returns Promise<boolean>
getAll
-
Gets all config.
Returns {}
-
[key: string]: Value
-
getBoolean
-
Gets the value for the given key as a boolean.
Convenience method for calling
remoteConfig.getValue(key).asBoolean()
.Parameters
-
key: string
Returns boolean
-
getNumber
-
Gets the value for the given key as a number.
Convenience method for calling
remoteConfig.getValue(key).asNumber()
.Parameters
-
key: string
Returns number
-
getString
-
Gets the value for the given key as a String.
Convenience method for calling
remoteConfig.getValue(key).asString()
.Parameters
-
key: string
Returns string
-
getValue
setLogLevel
-
Defines the log level to use.
Parameters
-
logLevel: LogLevel
Returns void
-
The Firebase Remote Config service interface.
Do not call this constructor directly. Instead, use
firebase.remoteConfig()
.