示例#1
0
 public static void logNotificationShownForEarthquake(@NonNull Earthquake earthquake) {
   Timber.d("Logging notification shown for event with id { %s }", earthquake.getId());
   Answers.getInstance()
       .logCustom(
           new CustomEvent("Notification Shown")
               .putCustomAttribute("earthquake-id", earthquake.getId()));
 }
示例#2
0
 public static void logDetailViewExpanded(@NonNull Earthquake earthquake) {
   Timber.d(
       "Logging earthquake detail view expansion for event with id { %s }", earthquake.getId());
   Answers.getInstance()
       .logCustom(
           new CustomEvent("Earthquake Detail Expanded")
               .putCustomAttribute("earthquake-id", earthquake.getId()));
 }
示例#3
0
 public static void logEarthquakeSelectedInList(@NonNull Earthquake earthquake) {
   Timber.d("Logging earthquake selected in list for event with id { %s }", earthquake.getId());
   Answers.getInstance()
       .logContentView(
           new ContentViewEvent()
               .putContentName("Earthquake viewed")
               .putContentType("earthquake-view")
               .putCustomAttribute("source", "list")
               .putContentId(earthquake.getId()));
 }
示例#4
0
 public static void logEarthquakeViewFromNotification(@NonNull Earthquake earthquake) {
   Timber.d(
       "Logging earthquake viewed from notification for event with id { %s }", earthquake.getId());
   Answers.getInstance()
       .logContentView(
           new ContentViewEvent()
               .putContentName("Earthquake viewed from Notification")
               .putContentType("earthquake-view")
               .putCustomAttribute("source", "notification")
               .putContentId(earthquake.getId()));
 }