Firebase. Analytics. Parameter
Event parameter.
Summary
Parameters supply information that contextualize events (see LogEvent). You can associate up to 25 unique Parameters with each event type (name).
You are not limited to the set of event types and parameter names suggested in FirebaseAnalytics class properties. Additional Parameters can be supplied for suggested event types or custom Parameters for custom event types.
Parameter names must be a combination of letters and digits (matching the regular expression [a-zA-Z0-9]) between 1 and 24 characters long starting with a letter [a-zA-Z] character.
Parameter string values can be up to 36 characters long.
For example, a game may log an achievement event along with the character the player is using and the level they're currently on:
using Firebase.Analytics;
int currentLevel = GetCurrentLevel();
Parameter[] AchievementParameters = {
new Parameter(FirebaseAnalytics.ParameterAchievementID,
"ultimate_wizard"),
new Parameter(FirebaseAnalytics.ParameterCharacter, "mysterion"),
new Parameter(FirebaseAnalytics.ParameterLevel, currentLevel),
};
FirebaseAnalytics.LogEvent(FirebaseAnalytics.EventLevelUp,
AchievementParameters);
Inheritance
Inherits from: SystemIDisposable
Constructors and Destructors |
|
|---|---|
Parameter(string parameterName, string parameterValue)
|
|
Parameter(string parameterName, long parameterValue)
|
|
Parameter(string parameterName, double parameterValue)
|
Public functions |
|
|---|---|
Dispose()
|
void
|
Public functions
Dispose
void Dispose()
Parameter
Parameter( string parameterName, string parameterValue )
Parameter
Parameter( string parameterName, long parameterValue )
Parameter
Parameter( string parameterName, double parameterValue )

