Beispiel #1
0
        /// <summary>
        /// Start or continue a Flurry session for the project denoted by apiKey.
        /// </summary>
        /// <param name="apiKey">The API key for this project.</param>
        public void StartSession(string apiKey)
        {
#if UNITY_EDITOR
#elif UNITY_IOS
            FlurryIOS.StartSession(apiKey);
#elif UNITY_ANDROID
            FlurryAndroid.Init(apiKey);
            FlurryAndroid.OnStartSession();
#endif
        }
Beispiel #2
0
        /// <summary>
        /// Records a custom parameterized timed event specified by eventName with parameters.
        /// </summary>
        /// <param name="eventName">
        /// Name of the event. For maximum effectiveness, we recommend using a naming scheme
        /// that can be easily understood by non-technical people in your business domain.
        /// </param>
        /// <param name="parameters">
        /// An immutable copy of map containing Name-Value pairs of parameters.
        /// </param>
        public EventRecordStatus BeginLogEvent(string eventName, Dictionary <string, string> parameters)
        {
#if UNITY_EDITOR
            return(EventRecordStatus.Failed);
#elif UNITY_IOS
            return(FlurryIOS.LogEvent(eventName, parameters, true));
#elif UNITY_ANDROID
            return(FlurryAndroid.LogEvent(eventName, parameters, true));
#endif
            return(EventRecordStatus.Failed);
        }
Beispiel #3
0
        /// <summary>
        /// Records a timed event specified by eventName.
        /// </summary>
        /// <param name="eventName">
        /// Name of the event. For maximum effectiveness, we recommend using a naming scheme
        /// that can be easily understood by non-technical people in your business domain.
        /// </param>
        public EventRecordStatus BeginLogEvent(string eventName)
        {
#if UNITY_EDITOR
            return(EventRecordStatus.Failed);
#elif UNITY_IOS
            return(FlurryIOS.LogEvent(eventName, true));
#elif UNITY_ANDROID
            return(FlurryAndroid.LogEvent(eventName, true));
#endif
            return(EventRecordStatus.Failed);
        }