예제 #1
0
        public static AnalyticsResult EnableCustomEvent(string customEventName, bool enabled)
        {
            bool flag = string.IsNullOrEmpty(customEventName);

            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.EnableCustomEventWithLimit(customEventName, enabled);
            }
            return(result);
        }