Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. public static string INT_KEY = "int_value";
  2.  
  3. public static void SendAnalyticEvent(string eventName, int value)
  4. {
  5.     if (!isInitialized)
  6.     {
  7.         return;
  8.     }
  9.  
  10.     long valueToSend = System.Convert.ToInt64(value);
  11.  
  12.     FirebaseAnalytics.LogEvent(eventName, INT_KEY, valueToSend);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement