From 2eec3de87b6b616a69a46c1f97c2397159031d2f Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 21 十一月 2023 18:01:43 +0800 Subject: [PATCH] 广告升级/bug修复 --- BuWanVideo/src/com/weikou/beibeivideo/util/UmengEventUtil.java | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/util/UmengEventUtil.java b/BuWanVideo/src/com/weikou/beibeivideo/util/UmengEventUtil.java index e731d7f..ebc928c 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/util/UmengEventUtil.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/util/UmengEventUtil.java @@ -53,4 +53,44 @@ } + /** + * 鎺ㄨ崘瀵艰埅 + * + * @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; + } + } -- Gitblit v1.8.0