Analytics.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using Xamarin;
  3. namespace XamarinInsights
  4. {
  5. public static class Analytics
  6. {
  7. public static void UserAuthenticated(User user)
  8. {
  9. //TODO: Xamarin.Insights.Identify()
  10. //The UID can be any identifier you use to identify a user. Email can be a good option
  11. //The Table parameter allows you to send any other traits about your users.
  12. //Check Insights.Traits for some reccomended/supported traits.
  13. //Feel free to track any additional data you need to about your user
  14. throw new NotImplementedException ();
  15. }
  16. public static void LogKeyPress(string key)
  17. {
  18. //TODO:Xamarin.Insights.Track();
  19. //Track using the identifier KeyPress
  20. //Pass in the actual key press by using the dictionary with a key of "Key"
  21. throw new NotImplementedException ();
  22. }
  23. public static void LogPageView(string pageView)
  24. {
  25. //TODO:Xamarin.Insights.Track();
  26. throw new NotImplementedException ();
  27. }
  28. public static void LogNewLevel(int level,string currentCombination, double timeRemaining)
  29. {
  30. //TODO:Xamarin.Insights.Track();
  31. //Pass in the other parameters using the dictionary
  32. throw new NotImplementedException ();
  33. }
  34. }
  35. }