admin
2021-05-11 e5ca87e89fef96c827ec37d1d91082f626cbb17d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.tejia.lijin.app.util.umengCustomEvent;
 
import android.content.Context;
 
import com.umeng.analytics.MobclickAgent;
 
import java.util.HashMap;
import java.util.Map;
 
/**
 * 消息页自定义事件触达
 */
public class MessageCustomEvent {
 
    /*
     * 系统消息点击
     */
    public static void msgItemClick(Context context, String type) {
        Map<String, Object> map = new HashMap<>();
        map.put("type", type);
        MobclickAgent.onEventObject(context, "msg_item_click", map);
    }
 
    /*
     * 猜你喜欢点击商品
     */
    public static void msgGuessLike(Context context) {
        MobclickAgent.onEvent(context, "msg_guess_like");
    }
 
    /*
     * 去旧版点击
     */
    public static void msgOld(Context context) {
        MobclickAgent.onEvent(context, "msg_old");
    }
 
    /*
     * 红点清除点击
     */
    public static void msgClearNotify(Context context) {
        MobclickAgent.onEvent(context, "msg_clear_notify");
    }
 
    /*
     * 其他消息点击
     */
    public static void msgOther(Context context) {
        MobclickAgent.onEvent(context, "msg_other");
    }
}