setAdditionalEventAttributes static method
Sets additional attributes of the events that are tracked by the SDK automatically.
The attributes replace the ones set before for each of the given types.
Passing null or empty attributes for both parameters clears the ones set before.
To apply the attributes to the install event, disable autoStartTracking,
call this method, then call startTracking.
- Parameter
typesTypes of the events to apply the attributes. - Parameter
semanticAttributesAdditional attributes of the events that are defined by Airbridge. - Parameter
customAttributesAdditional attributes of the events.
Implementation
static void setAdditionalEventAttributes({
required List<AirbridgeEventType> types,
Map<String, dynamic>? semanticAttributes,
Map<String, dynamic>? customAttributes,
}) {
Logger.called('setAdditionalEventAttributes');
_event.setAdditionalEventAttributes(
types: types,
semanticAttributes: semanticAttributes,
customAttributes: customAttributes);
}