Ejemplo n.º 1
0
 public static void onEventSearchTag(String tag) {
   LogGather.setLogMarker(LogGather.MARK.DURATION_EVENT, LOG_ZHUGE.EV_SEARCH_DO);
   Map<String, Object> keys = new HashMap<String, Object>();
   keys.put(LOG_ZHUGE.EV_SEARCH_DO_KEY_HOT_TAG, tag);
   ZhugeSDK.getInstance()
       .onEvent(BaseApp.getApplication(), LOG_ZHUGE.EV_SEARCH_DO, new JSONObject(keys));
 }
Ejemplo n.º 2
0
 public static void onEventSearchSuggestion(String name, int pos) {
   LogGather.setLogMarker(LogGather.MARK.DURATION_EVENT, LOG_ZHUGE.EV_SEARCH_DO);
   Map<String, Object> keys = new HashMap<String, Object>();
   keys.put(LOG_ZHUGE.EV_SEARCH_DO_KEY_USER_INPUT, name);
   keys.put(LOG_ZHUGE.EV_SEARCH_KEY_POSITION, pos);
   ZhugeSDK.getInstance()
       .onEvent(BaseApp.getApplication(), LOG_ZHUGE.EV_SEARCH_SUGGESTION, new JSONObject(keys));
 }
Ejemplo n.º 3
0
 /**
  * 标签-分类-项-点击
  *
  * @param type
  * @param name
  */
 public static void onEventTagSelect(String type, String name) {
   setLogMarker(MARK.DURATION_EVENT, LOG_ZHUGE.EV_TAG_RECIPE);
   Map<String, Object> keys = new HashMap<String, Object>();
   keys.put(LOG_ZHUGE.EV_TAG_SELECT_KEY_TYPE, type);
   keys.put(LOG_ZHUGE.EV_TAG_KEY_NAME, name);
   ZhugeSDK.getInstance()
       .onEvent(BaseApp.getApplication(), LOG_ZHUGE.EV_TAG_SELECT, new JSONObject(keys));
 }
Ejemplo n.º 4
0
  /**
   * 标签-首页
   *
   * @param tag
   */
  public static void onEventTagRecommend(String tag) {
    setLogMarker(MARK.DURATION_EVENT, LOG_ZHUGE.EV_TAG_RECIPE);

    Map<String, Object> keys = new HashMap<String, Object>();
    keys.put(LOG_ZHUGE.EV_TAG_KEY_NAME, tag);
    ZhugeSDK.getInstance()
        .onEvent(BaseApp.getApplication(), LOG_ZHUGE.EV_TAG_RECOMMEND, new JSONObject(keys));
  }