Index
Properties
app
The app associated with the Performance
service
instance.
default Config
Object containing default values for configs.
Type declaration
-
[key: string]: string | number | boolean
fetch Time Millis
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.
last Fetch Status
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>
ensure Initialized
-
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>
fetch And Activate
-
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>
get All
-
Gets all config.
Returns {}
-
[key: string]: Value
-
get Boolean
-
Gets the value for the given key as a boolean.
Convenience method for calling
remoteConfig.getValue(key).asBoolean()
.Parameters
-
key: string
Returns boolean
-
get Number
-
Gets the value for the given key as a number.
Convenience method for calling
remoteConfig.getValue(key).asNumber()
.Parameters
-
key: string
Returns number
-
get String
-
Gets the value for the given key as a String.
Convenience method for calling
remoteConfig.getValue(key).asString()
.Parameters
-
key: string
Returns string
-
get Value
set Log Level
-
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()
.