remoteConfig.UpdateBuilder class

Builder used to create Cloud Functions for Remote Config.

Signature:

export declare class UpdateBuilder 

Methods

Method Modifiers Description
onUpdate(handler) Handle all updates (including rollbacks) that affect a Remote Config project.

remoteConfig.UpdateBuilder.onUpdate()

Handle all updates (including rollbacks) that affect a Remote Config project.

Signature:

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>