package com.remax.visualnovel.event.modular

import com.remax.visualnovel.event.model.OnPlayVoiceEvent
import com.remax.visualnovel.event.model.tab.OnTabChangedEvent
import com.pengxr.modular.eventbus.facade.annotation.EventGroup

/**
 * Created by HJW on 2023/5/22
 * UI操作的事件
 */
@EventGroup(moduleName = "UI", autoClear = true)
interface UIEvents {

    /**
     * 首页底部tab 双击时回到顶部操作
     */
    fun mainScrollToTop()

    fun onNetworkConnect()

    /**
     * 主页tab切换
     */
    fun onHomeTabChanged(): OnTabChangedEvent

    /**
     * 播放语音开始/结束
     * @return Integer
     */
    fun onSkillVoiceEvent(): OnPlayVoiceEvent
}