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())); }
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())); }
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())); }
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())); }