reportFirstEvent static method
- @Deprecated('Use event sending with type [EventSendingType.oncePerApplifetime] in the [DSMetrica.reportEvent] method')
Send only one event per app lifetime
Implementation
@Deprecated('Use event sending with type [EventSendingType.oncePerApplifetime] in the [DSMetrica.reportEvent] method')
static void reportFirstEvent(String eventName, {Map<String, Object>? attributes, int stackSkip = 1}) {
final firstEvent = DSPrefs.I.internal.getString(_firstEventParam);
if (firstEvent != null) return;
DSPrefs.I.internal.setString(_firstEventParam, eventName);
reportEventWithMap(
'$eventName (first event)',
attributes,
stackSkip: stackSkip + 1,
eventSendingType: EventSendingType.oncePerAppLifetime,
);
}