[6.7.0][工具箱] feat: 增驾工具箱item 默认数据;
feat: 增驾注册监听item 点击事件的方法供och 调用;
This commit is contained in:
@@ -16,6 +16,7 @@ import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener
|
||||
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
|
||||
@@ -352,4 +353,11 @@ object CallerHmiManager {
|
||||
fun dismissGreenWave() {
|
||||
hmiProviderApi?.dismissGreenWave()
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册 工具箱 item点击事件监听 (默认样式item的点击事件监听,自定义样式的item的点击交给view自己处理)
|
||||
*/
|
||||
fun registerToolKitDefaultItemClickListener(tag: String, listener: IToolKitItemClickListener) {
|
||||
hmiProviderApi?.registerToolKitDefaultItemClickListener(tag, listener)
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ object CallerOchCustomViewManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建 自动自动驾驶 自定义 View
|
||||
* 创建 启动自动驾驶 自定义 View
|
||||
*/
|
||||
fun getStartAutopilotView(context: Context?): View? {
|
||||
return ochCustomViewProviderApi?.createStartAutopilotView(context)
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.mogo.eagle.core.function.call.och
|
||||
|
||||
import com.mogo.eagle.core.function.api.och.IOchFunctionCall
|
||||
import com.mogo.eagle.core.function.api.och.IToolKitItemClickListener
|
||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
||||
|
||||
/**
|
||||
* 实现给 Och 业务层调用的接口
|
||||
*/
|
||||
object CallerOchFunctionCallManager : IOchFunctionCall {
|
||||
const val TAG = "CallerOchFunctionCallManager"
|
||||
|
||||
/**
|
||||
* 注册 工具箱 item点击事件监听 (默认样式item的点击事件监听,自定义样式的item的点击交给view自己处理)
|
||||
*/
|
||||
override fun registerToolKitDefaultItemClickListener(
|
||||
tag: String,
|
||||
listener: IToolKitItemClickListener
|
||||
) {
|
||||
CallerHmiManager.registerToolKitDefaultItemClickListener(tag, listener)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user