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

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

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

public enum AnalyticsEventCategory {
    Session,
    Interaction,
    Crash,
    Custom;

    public static AnalyticsEventCategory fromString(String categoryString) {
        AnalyticsEventCategory category = Custom;
        if (categoryString == null) {
            return category;
        }
        if (categoryString.equalsIgnoreCase("session")) {
            return Session;
        }
        if (categoryString.equalsIgnoreCase("interaction")) {
            return Interaction;
        }
        if (categoryString.equalsIgnoreCase("crash")) {
            return Crash;
        }
        return category;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy