AppNotifyEventConstant.java 1.74 KB
package com.people.webview.constant;

/**
 * App相关通知事件常量
 * @author baozhaoxin
 * @version [V1.0.0, 2023/10/23]
 * @since V1.0.0
 */
public class AppNotifyEventConstant {

    /**
     * 1 当前页面即将从新显示(从其他App页面返回至当前H5页面,第一次页面加载显示不算)
     */
    public static final String EVENT_ONE = "1";

    /**
     * 2 当前页面即将消失
     */
    public static final String EVENT_TWO = "2";

    /**
     * 3 App进入前台
     */
    public static final String EVENT_THREE = "3";

    /**
     * 4 App进入后台
     */
    public static final String EVENT_FOUR = "4";

    /**
     * 5 App开始播放音频(处理音视频互斥问题)
     */
    public static final String EVENT_FIVE = "5";

    /**
     * 6、更新浏览量数据
     */
    public static final String EVENT_SIX = "6";

    /**
     * 7、针对Webview容器已复用情况下,开始加载事件(避免弱网复用的模板显示空白)
     */
    public static final String EVENT_SEVEN = "7";

    /**
     * 9、当 event==9时, light (亮色模式)、dark(暗色模式)
     */
    public static final String EVENT_NINE = "9";

    /**
     * 10、当 event==10时,small(小)、normalsize(标准)、large(大)、Large(较大)
     */
    public static final String EVENT_TEN = "10";

    /**
     * 11、App关注事件(用来通知H5刷新关注状态用)
     */
    public static final String EVENT_ELEVEN = "11";

    /**
     * 12、App点赞事件(用来通知H5刷新点赞状态用)
     */
    public static final String EVENT_TWELVE = "12";

    /**
     * 13 App开始进入文章详情页
     */
    public static final String EVENT_THIRTEEN = "13";
}