setAdditionalEventAttributes static method

void setAdditionalEventAttributes({
  1. required List<AirbridgeEventType> types,
  2. Map<String, dynamic>? semanticAttributes,
  3. Map<String, dynamic>? customAttributes,
})

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 types Types of the events to apply the attributes.
  • Parameter semanticAttributes Additional attributes of the events that are defined by Airbridge.
  • Parameter customAttributes Additional 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);
}