remoteConfig namespace Stay organized with collections Save and categorize content based on your preferences.
Functions
| Function | Description |
|---|---|
| onConfigUpdated(handler) | Event handler which triggers when data is updated in a Remote Config. |
| onConfigUpdated(opts, handler) | Event handler which triggers when data is updated in a Remote Config. |
Interfaces
| Interface | Description |
|---|---|
| ConfigUpdateData | The data within Firebase Remote Config update events. |
| ConfigUser | All the fields associated with the person/service account that wrote a Remote Config template. |
Type Aliases
| Type Alias | Description |
|---|---|
| ConfigUpdateOrigin | What type of update was associated with the Remote Config template version. |
| ConfigUpdateType | Where the Remote Config update action originated. |
remoteConfig.onConfigUpdated()
Event handler which triggers when data is updated in a Remote Config.
Signature:
exportdeclarefunctiononConfigUpdated(handler:(event:CloudEvent<ConfigUpdateData>)=>any|Promise<any>):CloudFunction<CloudEvent<ConfigUpdateData>>;Parameters
| Parameter | Type | Description |
|---|---|---|
| handler | (event:CloudEvent<ConfigUpdateData>) => any | Promise<any> | Event handler which is run every time a Remote Config update occurs. |
Returns:
CloudFunction<CloudEvent<ConfigUpdateData>>
A function that you can export and deploy.
remoteConfig.onConfigUpdated()
Event handler which triggers when data is updated in a Remote Config.
Signature:
exportdeclarefunctiononConfigUpdated(opts:EventHandlerOptions,handler:(event:CloudEvent<ConfigUpdateData>)=>any|Promise<any>):CloudFunction<CloudEvent<ConfigUpdateData>>;Parameters
| Parameter | Type | Description |
|---|---|---|
| opts | EventHandlerOptions | Options that can be set on an individual event-handling function. |
| handler | (event:CloudEvent<ConfigUpdateData>) => any | Promise<any> | Event handler which is run every time a Remote Config update occurs. |
Returns:
CloudFunction<CloudEvent<ConfigUpdateData>>
A function that you can export and deploy.
remoteConfig.ConfigUpdateOrigin
What type of update was associated with the Remote Config template version.
Signature:
exporttypeConfigUpdateOrigin=/** Catch-all for unrecognized values. */"REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED"/** The update came from the Firebase UI. */|"CONSOLE"/** The update came from the Remote Config REST API. */|"REST_API"/** The update came from the Firebase Admin Node SDK. */|"ADMIN_SDK_NODE";remoteConfig.ConfigUpdateType
Where the Remote Config update action originated.
Signature:
exporttypeConfigUpdateType=/** Catch-all for unrecognized enum values */"REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED"/** A regular incremental update */|"INCREMENTAL_UPDATE"/** A forced update. The ETag was specified as "*" in an UpdateRemoteConfigRequest request or the "Force Update" button was pressed on the console */|"FORCED_UPDATE"/** A rollback to a previous Remote Config template */|"ROLLBACK";Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-18 UTC.