remoteConfig namespace
Stay organized with collections
Save and categorize content based on your preferences.
Functions
Function |
Description |
onUpdate(handler) |
Registers a function that triggers on Firebase Remote Config template update events. |
Classes
Class |
Description |
UpdateBuilder |
Builder used to create Cloud Functions for Remote Config. |
Interfaces
Interface |
Description |
RemoteConfigUser |
An interface representing metadata for a Remote Config account that performed the update. Contains the same fields as [RemoteConfigUser ](/docs/reference/remote-config/rest/v1/Version#remoteconfiguser). |
TemplateVersion |
An interface representing a Remote Config template version metadata object emitted when a project is updated. |
remoteConfig.onUpdate()
Registers a function that triggers on Firebase Remote Config template update events.
Signature:
export declare function onUpdate(handler: (version: TemplateVersion, context: EventContext) => PromiseLike<any> | any): CloudFunction<TemplateVersion>;
Parameters
Parameter |
Type |
Description |
handler |
(version: TemplateVersion, context: EventContext) => PromiseLike<any> | any |
A function that takes the updated Remote Config template version metadata as an argument. |
Returns:
CloudFunction<TemplateVersion>
A function that you can export and deploy.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-24 UTC.
[null,null,["Last updated 2023-04-24 UTC."],[],[],null,["# remoteConfig namespace\n\nFunctions\n---------\n\n| Function | Description |\n|--------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| [onUpdate(handler)](./firebase-functions.remoteconfig.md#remoteconfigonupdate) | Registers a function that triggers on Firebase Remote Config template update events. |\n\nClasses\n-------\n\n| Class | Description |\n|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [UpdateBuilder](./firebase-functions.remoteconfig.updatebuilder.md#remoteconfigupdatebuilder_class) | Builder used to create Cloud Functions for Remote Config. |\n\nInterfaces\n----------\n\n| Interface | Description |\n|------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RemoteConfigUser](./firebase-functions.remoteconfig.remoteconfiguser.md#remoteconfigremoteconfiguser_interface) | An interface representing metadata for a Remote Config account that performed the update. Contains the same fields as \\[`RemoteConfigUser`\\](/docs/reference/remote-config/rest/v1/Version#remoteconfiguser). |\n| [TemplateVersion](./firebase-functions.remoteconfig.templateversion.md#remoteconfigtemplateversion_interface) | An interface representing a Remote Config template version metadata object emitted when a project is updated. |\n\nremoteConfig.onUpdate()\n-----------------------\n\nRegisters a function that triggers on Firebase Remote Config template update events.\n\n**Signature:** \n\n export declare function onUpdate(handler: (version: TemplateVersion, context: EventContext) =\u003e PromiseLike\u003cany\u003e | any): CloudFunction\u003cTemplateVersion\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| handler | (version: [TemplateVersion](./firebase-functions.remoteconfig.templateversion.md#remoteconfigtemplateversion_interface), context: [EventContext](./firebase-functions.eventcontext.md#eventcontext_interface)) =\\\u003e PromiseLike\\\u003cany\\\u003e \\| any | A function that takes the updated Remote Config template version metadata as an argument. |\n\n**Returns:**\n\n[CloudFunction](./firebase-functions.cloudfunction.md#cloudfunction_interface)\\\u003c[TemplateVersion](./firebase-functions.remoteconfig.templateversion.md#remoteconfigtemplateversion_interface)\\\u003e\n\nA function that you can export and deploy."]]