[6.7.0] roadcross ui change and update och biz caller
This commit is contained in:
@@ -2,22 +2,34 @@ 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.base.CallerBase
|
||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
||||
|
||||
/**
|
||||
* 实现给 Och 业务层调用的接口
|
||||
*/
|
||||
object CallerOchFunctionCallManager : IOchFunctionCall {
|
||||
object CallerOchFunctionCallManager : CallerBase<IOchFunctionCall>() {
|
||||
const val TAG = "CallerOchFunctionCallManager"
|
||||
|
||||
override fun doSomeAfterAddListener(tag: String, listener: IOchFunctionCall) {
|
||||
super.doSomeAfterAddListener(tag, listener)
|
||||
listener.invokeLoginInfo()
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册 工具箱 item点击事件监听 (默认样式item的点击事件监听,自定义样式的item的点击交给view自己处理)
|
||||
*/
|
||||
override fun registerToolKitDefaultItemClickListener(
|
||||
fun toolKitDefaultItemClickListener(
|
||||
tag: String,
|
||||
listener: IToolKitItemClickListener
|
||||
) {
|
||||
CallerHmiManager.registerToolKitDefaultItemClickListener(tag, listener)
|
||||
}
|
||||
|
||||
fun invokeLoginInfo(){
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.invokeLoginInfo()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user