All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eg.agent.android.analytics.AnalyticsEventFactory Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
package com.eg.agent.android.analytics;

import java.util.Set;

public class AnalyticsEventFactory {
    static AnalyticsEvent createEvent(String name, AnalyticsEventCategory eventCategory, String eventType, Set eventAttributes) {
        switch (eventCategory) {
            case Session:
                return new SessionEvent(eventAttributes);
            case Interaction:
                return new InteractionEvent(name, eventAttributes);
            case Crash:
                return new CrashEvent(name, eventAttributes);
            case Custom:
                return new CustomEvent(name, eventType, eventAttributes);
            default:
                return null;
        }
    }

    private AnalyticsEventFactory() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy