remoteConfig namespace

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.