EventSpa.firstOpen constructor

EventSpa.firstOpen({
  1. required String previousGmpAppId,
  2. required String updatedWithAnalytics,
  3. required String previousFirstOpenCount,
  4. required String systemApp,
  5. required String systemAppUpdate,
  6. required String deferredAnalyticsCollection,
  7. required String resetAnalyticsCause,
  8. required String engagementTimeMSec,
})

Use this constructor is user first open the app previousGmpAppId is the previous gmp app id updatedWithAnalytics is the updated with analytics previousFirstOpenCount is the previous first open count systemApp is the system app systemAppUpdate is the system app update deferredAnalyticsCollection is the deferred analytics collection resetAnalyticsCause is the reset analytics cause engagementTimeMsec is the time in milliseconds, the user was engaged with the app

Implementation

EventSpa.firstOpen({
  required String previousGmpAppId,
  required String updatedWithAnalytics,
  required String previousFirstOpenCount,
  required String systemApp,
  required String systemAppUpdate,
  required String deferredAnalyticsCollection,
  required String resetAnalyticsCause,
  required String engagementTimeMSec,
}) : this(
  eventType: "first_open",
  customParam: {
    'previous_gmp_app_id': previousGmpAppId,
    'updated_with_analytics': updatedWithAnalytics,
    'previous_first_open_count': previousFirstOpenCount,
    'system_app': systemApp,
    'system_app_update': systemAppUpdate,
    'deferred_analytics_collection': deferredAnalyticsCollection,
    'reset_analytics_cause': resetAnalyticsCause,
    'engagement_time_msec': engagementTimeMSec,
  }
);