Ejemplo n.º 1
0
 public static void EndTimedEvent(string eventName, Dictionary <string, string> parameters = null)
 {
     FlurryAnalyticsAndroid.DebugLog("End timed event: " + eventName);
     if (!FlurryAnalyticsAndroid.IsAndroidPlayer())
     {
         return;
     }
     if (parameters == null)
     {
         FlurryAnalyticsAndroid.Flurry.CallStatic("endTimedEvent", new object[]
         {
             eventName
         });
     }
     else
     {
         using (AndroidJavaObject androidJavaObject = FlurryAnalyticsAndroid.ConvertDictionaryToJavaHashMap(parameters))
         {
             FlurryAnalyticsAndroid.Flurry.CallStatic("endTimedEvent", new object[]
             {
                 eventName,
                 androidJavaObject
             });
         }
     }
 }
Ejemplo n.º 2
0
 public static void LogPayment(string productName, string productId, int quantity, double price, string currency, string transactionId, Dictionary <string, string> parameters)
 {
     FlurryAnalyticsAndroid.DebugLog("Log payment: " + productName);
     if (parameters == null)
     {
         parameters = new Dictionary <string, string>();
     }
     using (AndroidJavaObject androidJavaObject = FlurryAnalyticsAndroid.ConvertDictionaryToJavaHashMap(parameters))
     {
         FlurryAnalyticsAndroid.Flurry.CallStatic <AndroidJavaObject>("logPayment", new object[]
         {
             productName,
             productId,
             quantity,
             price,
             currency,
             transactionId,
             androidJavaObject
         });
     }
 }
Ejemplo n.º 3
0
 public static void LogEventWithParameters(string eventName, Dictionary <string, string> parameters, bool isTimed = false)
 {
     FlurryAnalyticsAndroid.DebugLog(string.Concat(new object[]
     {
         "Log event: ",
         eventName,
         " isTimed: ",
         isTimed,
         " with parameters"
     }));
     if (!FlurryAnalyticsAndroid.IsAndroidPlayer())
     {
         return;
     }
     using (AndroidJavaObject androidJavaObject = FlurryAnalyticsAndroid.ConvertDictionaryToJavaHashMap(parameters))
     {
         FlurryAnalyticsAndroid.Flurry.CallStatic <AndroidJavaObject>("logEvent", new object[]
         {
             eventName,
             androidJavaObject,
             isTimed
         });
     }
 }