Пример #1
0
        public static AnalyticsResult EnableEvent(string eventName, bool enabled, int ver = 1, string prefix = "")
        {
            bool flag = string.IsNullOrEmpty(eventName);

            if (flag)
            {
                throw new ArgumentException("Cannot set event name to an empty or null string");
            }
            bool            flag2 = !Analytics.IsInitialized();
            AnalyticsResult result;

            if (flag2)
            {
                result = AnalyticsResult.NotInitialized;
            }
            else
            {
                result = Analytics.EnableEventWithLimit(eventName, enabled, ver, prefix);
            }
            return(result);
        }