| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 推荐导航 |
| | | * |
| | | * @param context |
| | | * @param index |
| | | */ |
| | | public static void recommendNav(Context context, int index, String name) { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("position", "index-" + index); |
| | | params.put("name", name); |
| | | event(context, "recommend-nav", params); |
| | | } |
| | | |
| | | |
| | | public static void recommendVideoClick(Context context, String navName, RecommendClickEventType type, int index) { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("position", "index-" + index); |
| | | params.put("navName", navName); |
| | | params.put("type", type.name()); |
| | | event(context, "recommend-video-click", params); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * PPTV免广权益 |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void pptvNoAdRewardClick(Context context, String adType) { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("adType", adType); |
| | | event(context, "pptv-no-ad-reward-click", params); |
| | | } |
| | | |
| | | |
| | | //点击事件分类 |
| | | public static enum RecommendClickEventType { |
| | | videoList, banner; |
| | | } |
| | | |
| | | } |