remoteConfig namespace

Functions

FunctionDescription
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

InterfaceDescription
ConfigUpdateDataThe data within Firebase Remote Config update events.
ConfigUserAll the fields associated with the person/service account that wrote a Remote Config template.

Type Aliases

Type AliasDescription
ConfigUpdateOriginWhat type of update was associated with the Remote Config template version.
ConfigUpdateTypeWhere 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

ParameterTypeDescription
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

ParameterTypeDescription
optsEventHandlerOptionsOptions 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";