analytics.AnalyticsEventBuilder class

The Firebase Analytics event builder interface.

Access via functions.analytics.event().

Signature:

export declare class AnalyticsEventBuilder 

Constructors

Constructor Modifiers Description
(constructor)(triggerResource, options) Constructs a new instance of the AnalyticsEventBuilder class

Methods

Method Modifiers Description
onLog(handler) Event handler that fires every time a Firebase Analytics event occurs.

analytics.AnalyticsEventBuilder.(constructor)

Constructs a new instance of the AnalyticsEventBuilder class

Signature:

constructor(triggerResource: () => string, options: DeploymentOptions);

Parameters

Parameter Type Description
triggerResource () => string
options DeploymentOptions

analytics.AnalyticsEventBuilder.onLog()

Event handler that fires every time a Firebase Analytics event occurs.

Signature:

onLog(handler: (event: AnalyticsEvent, context: EventContext) => PromiseLike<any> | any): CloudFunction<AnalyticsEvent>;

Parameters

Parameter Type Description
handler (event: AnalyticsEvent, context: EventContext) => PromiseLike<any> | any Event handler that fires every time a Firebase Analytics event occurs.

Returns:

CloudFunction<AnalyticsEvent>

A function that you can export and deploy.