@@ -476,6 +476,28 @@ void LogEvent(const char* name);
476476void LogEvent (const char * name, const Parameter* parameters,
477477 size_t number_of_parameters);
478478
479+ // / @brief Log an event with associated parameters.
480+ // /
481+ // / An Event is an important occurrence in your app that you want to
482+ // / measure. You can report up to 500 different types of events per app and
483+ // / you can associate up to 25 unique parameters with each Event type.
484+ // /
485+ // / Some common events are documented in @ref event_names (%event_names.h),
486+ // / but you may also choose to specify custom event types that are associated
487+ // / with your specific app.
488+ // /
489+ // / @param[in] name Name of the event to log. Should contain 1 to 40
490+ // / alphanumeric characters or underscores. The name must start with an
491+ // / alphabetic character. Some event names are reserved. See @ref event_names
492+ // / (%event_names.h) for the list of reserved event names. The "firebase_"
493+ // / prefix is reserved and should not be used. Note that event names are
494+ // / case-sensitive and that logging two events whose names differ only in
495+ // / case will result in two distinct events.
496+ // / @param[in] parameters Array of Parameter structures.
497+ // / @param[in] number_of_parameters Number of elements in the parameters
498+ // / array.
499+ void LogEvent (const char * name, const std::vector<Parameter>& parameters);
500+
479501// / @brief Adds parameters that will be set on every event logged from the SDK.
480502// /
481503// / Adds parameters that will be set on every event logged from the SDK,
@@ -492,6 +514,19 @@ void LogEvent(const char* name, const Parameter* parameters,
492514void SetDefaultEventParameters (const Parameter* parameters,
493515 size_t number_of_parameters);
494516
517+ // / @brief Adds parameters that will be set on every event logged from the SDK.
518+ // /
519+ // / Adds parameters that will be set on every event logged from the SDK,
520+ // / including automatic ones. The values passed in the parameters bundle will
521+ // / be added to the map of default event parameters. These parameters persist
522+ // / across app runs. They are of lower precedence than event parameters, so if
523+ // / an event parameter and a parameter set using this API have the same name,
524+ // / the value of the event parameter will be used. The same limitations on event
525+ // / parameters apply to default event parameters.
526+ // /
527+ // / @param[in] parameters reference to vector of Parameter structures.
528+ void SetDefaultEventParameters (const std::vector<Parameter>& parameters);
529+
495530// / Initiates on-device conversion measurement given a user email address on iOS
496531// / and tvOS (no-op on Android). On iOS and tvOS, this method requires the
497532// / dependency GoogleAppMeasurementOnDeviceConversion to be linked in,
0 commit comments