[6.7.0][工具箱] feat: 增驾工具箱item 默认数据;
feat: 增驾注册监听item 点击事件的方法供och 调用;
This commit is contained in:
@@ -11,6 +11,7 @@ import com.mogo.eagle.core.data.map.Infrastructure
|
||||
import com.mogo.eagle.core.function.api.hmi.xiaozhi.event.Event
|
||||
import com.mogo.eagle.core.function.api.hmi.xiaozhi.listener.OnXiaoZhiStateChangeListener
|
||||
import com.mogo.eagle.core.function.api.hmi.xiaozhi.state.State
|
||||
import com.mogo.eagle.core.function.api.och.IToolKitItemClickListener
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
@@ -240,4 +241,9 @@ interface IMoGoHmiProvider :IProvider{
|
||||
* 隐藏绿波通弹窗
|
||||
*/
|
||||
fun dismissGreenWave()
|
||||
|
||||
/**
|
||||
* 注册 工具箱 item点击事件监听 (默认样式item的点击事件监听,自定义样式的item的点击交给view自己处理)
|
||||
*/
|
||||
fun registerToolKitDefaultItemClickListener( tag: String, listener: IToolKitItemClickListener)
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.mogo.eagle.core.function.api.och
|
||||
|
||||
/**
|
||||
* 定义给 Och 业务层调用的接口
|
||||
*/
|
||||
interface IOchFunctionCall {
|
||||
|
||||
/**
|
||||
* 注册 工具箱 item点击事件监听 (默认样式item的点击事件监听,自定义样式的item的点击交给view自己处理)
|
||||
*/
|
||||
fun registerToolKitDefaultItemClickListener(tag: String, listener: IToolKitItemClickListener) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.mogo.eagle.core.function.api.och
|
||||
|
||||
/**
|
||||
* 工具箱-item点击事件监听
|
||||
*/
|
||||
interface IToolKitItemClickListener {
|
||||
fun onItemClick(toolTag: String)
|
||||
}
|
||||
Reference in New Issue
Block a user