コード例 #1
0
        public static AnalyticsResult ItemSpent(AcquisitionType currencyType, string transactionContext, float amount, string itemId, float balance, string itemType = null, string level = null, string transactionId = null, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameItemSpent, eventData
                        .Copy()
                        .SafeAdd(EventColumnMonetizationCurrencyType, AnalyticsEnums.Get(currencyType))
                        .SafeAdd(EventColumnMonetizationTransactionContext, transactionContext)
                        .SafeAdd(EventColumnMonetizationAmount, amount)
                        .SafeAdd(EventColumnMonetizationItemId, itemId)
                        .SafeAddIf(EventColumnMonetizationBalance, balance, balance != float.MinValue)
                        .SafeAdd(EventColumnMonetizationItemType, itemType)
                        .SafeAdd(EventColumnMonetizationLevel, level)
                        .SafeAdd(EventColumnMonetizationTransactionId, transactionId));

            #if UNITY_ANALYTICS_SUPPORTED
            if (balance == float.MinValue)
            {
                return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.ItemSpent(AnalyticsEnums.Convert(currencyType), transactionContext, amount, itemId, itemType, level, transactionId, eventData)));
            }
            else
            {
                return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.ItemSpent(AnalyticsEnums.Convert(currencyType), transactionContext, amount, itemId, balance, itemType, level, transactionId, eventData)));
            }
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
コード例 #2
0
        public static AnalyticsResult StoreOpened(StoreType storeType, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameStoreOpened, eventData
                        .Copy()
                        .SafeAdd(EventColumnMonetizationStoreType, AnalyticsEnums.Get(storeType)));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.StoreOpened(AnalyticsEnums.Convert(storeType), eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
コード例 #3
0
 public static AnalyticsResult UserSignup(AuthorizationNetwork authorizationNetwork, IDictionary <string, object> eventData = null)
 {
     return(UserSignup(AnalyticsEnums.Get(authorizationNetwork), eventData));
 }
コード例 #4
0
 public static AnalyticsResult SocialShareAccept(ShareType shareType, string socialNetwork, string senderId = null, string recipientId = null, IDictionary <string, object> eventData = null)
 {
     return(SocialShareAccept(AnalyticsEnums.Get(shareType), socialNetwork, senderId, recipientId, eventData));
 }
コード例 #5
0
 public static AnalyticsResult ScreenVisit(ScreenName screenName, IDictionary <string, object> eventData = null)
 {
     return(ScreenVisit(AnalyticsEnums.Get(screenName), eventData));
 }
コード例 #6
0
 public static AnalyticsResult PostAdAction(bool rewarded, AdvertisingNetwork network, string placementId = null, IDictionary <string, object> eventData = null)
 {
     return(PostAdAction(rewarded, AnalyticsEnums.Get(network), placementId, eventData));
 }