[6.7.0]fix: code conflict ;
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.mogo.eagle.core.function.api.hmi.warning
|
||||
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import com.alibaba.android.arouter.facade.template.IProvider
|
||||
import com.mogo.eagle.core.data.biz.dispatch.DispatchAdasAutoPilotLocReceiverBean
|
||||
@@ -11,7 +12,9 @@ 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
|
||||
import com.mogo.eagle.core.function.api.och.toolkit.IToolKitItemClickListener
|
||||
import com.mogo.eagle.core.function.api.och.toolkit.ToolKitCustomItemAddParam
|
||||
import com.mogo.eagle.core.function.api.och.toolkit.ToolKitDefaultItemAddParam
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
@@ -245,7 +248,44 @@ interface IMoGoHmiProvider :IProvider{
|
||||
/**
|
||||
* 注册 工具箱 item点击事件监听 (默认样式item的点击事件监听,自定义样式的item的点击交给view自己处理)
|
||||
*/
|
||||
fun registerToolKitDefaultItemClickListener( tag: String, listener: IToolKitItemClickListener)
|
||||
fun addToolKitDefaultItemClickListener( tag: String, listener: IToolKitItemClickListener)
|
||||
|
||||
/**
|
||||
* 增加单个默认样式的工具箱item
|
||||
* @param toolTag 唯一标识tag,和前面toolTag重复的,默认不添加,跳过
|
||||
* @param toolTitle 工具名称
|
||||
* @param toolDrawableIcon icon drawable 资源文件id
|
||||
* @param position 在列表中排列位置 (1...N), position大于当前列表size最大值的默认放列表最后
|
||||
*/
|
||||
fun addSingleToolKitDefaultItem(toolTag: String, toolTitle: String, toolDrawableIcon: Int, position: Int)
|
||||
|
||||
/**
|
||||
* 增加多个默认样式的工具箱item
|
||||
*/
|
||||
fun addMultiToolkitDefaultItem(list: ArrayList<ToolKitDefaultItemAddParam>)
|
||||
|
||||
/**
|
||||
* 增加单个自定义样式的工具箱item
|
||||
* @param toolTag 唯一标识tag,和前面toolTag重复的,默认不添加,跳过
|
||||
* @param customView 自定义View
|
||||
* @param position 在列表中排列位置 (1...N), position大于当前列表size最大值的默认放列表最后
|
||||
*/
|
||||
fun addSingleToolKitCustomItem(toolTag: String, customView: View, position: Int)
|
||||
|
||||
/**
|
||||
* 增加多个自定义样式的工具箱item
|
||||
*/
|
||||
fun addMultiToolkitCustomItem(list: ArrayList<ToolKitCustomItemAddParam>)
|
||||
|
||||
/**
|
||||
* 获取当前所有工具箱中各工具的tag
|
||||
*/
|
||||
fun getToolkitAllTags(): Set<String>
|
||||
|
||||
/**
|
||||
* 根据toolTag 移除工具箱中工具
|
||||
*/
|
||||
fun removeToolkitByTag(toolTagList: List<String>)
|
||||
|
||||
/**
|
||||
* 显示/隐藏 运营面板
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package com.mogo.eagle.core.function.api.och
|
||||
|
||||
import com.mogo.eagle.core.data.enums.Carmodel
|
||||
import android.view.View
|
||||
import com.mogo.eagle.core.function.api.och.toolkit.IToolKitItemClickListener
|
||||
import com.mogo.eagle.core.function.api.och.toolkit.ToolKitCustomItemAddParam
|
||||
import com.mogo.eagle.core.function.api.och.toolkit.ToolKitDefaultItemAddParam
|
||||
|
||||
/**
|
||||
* 定义给 Och 业务层调用的接口
|
||||
@@ -10,14 +13,56 @@ interface IOchFunctionCall {
|
||||
/**
|
||||
* 注册 工具箱 item点击事件监听 (默认样式item的点击事件监听,自定义样式的item的点击交给view自己处理)
|
||||
*/
|
||||
fun registerToolKitDefaultItemClickListener(tag: String, listener: IToolKitItemClickListener) {}
|
||||
fun addToolKitDefaultItemClickListener(tag: String, listener: IToolKitItemClickListener)
|
||||
|
||||
fun LoginOut(){}
|
||||
/**
|
||||
* 增加单个默认样式的工具箱item
|
||||
* @param toolTag 唯一标识tag,和前面toolTag重复的,默认不添加,跳过
|
||||
* @param toolTitle 工具名称
|
||||
* @param toolDrawableIcon icon drawable 资源文件id
|
||||
* @param position 在列表中排列位置 (1...N), position大于当前列表size最大值的默认放列表最后
|
||||
*/
|
||||
fun addSingleToolKitDefaultItem(
|
||||
toolTag: String,
|
||||
toolTitle: String,
|
||||
toolDrawableIcon: Int,
|
||||
position: Int
|
||||
) {
|
||||
}
|
||||
|
||||
// 车型变化回调
|
||||
fun invokeCarMode(carModel: Carmodel?){}
|
||||
/**
|
||||
* 增加多个默认样式的工具箱item
|
||||
*/
|
||||
fun addMultiToolkitDefaultItem(list: ArrayList<ToolKitDefaultItemAddParam>) {}
|
||||
|
||||
// 车牌变化回调
|
||||
fun invokePlateNumber(plateNumber: String?){}
|
||||
/**
|
||||
* 增加单个自定义样式的工具箱item
|
||||
* @param toolTag 唯一标识tag,和前面toolTag重复的,默认不添加,跳过
|
||||
* @param customView 自定义View
|
||||
* @param position 在列表中排列位置 (1...N), position大于当前列表size最大值的默认放列表最后
|
||||
*/
|
||||
fun addSingleToolKitCustomItem(toolTag: String, customView: View, position: Int) {}
|
||||
|
||||
/**
|
||||
* 增加多个自定义样式的工具箱item
|
||||
*/
|
||||
fun addMultiToolkitCustomItem(list: ArrayList<ToolKitCustomItemAddParam>) {}
|
||||
|
||||
/**
|
||||
* 获取当前所有工具箱中各工具的tag
|
||||
*/
|
||||
fun getToolkitAllTags(): Set<String> {
|
||||
return emptySet()
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据toolTag 移除工具箱中工具
|
||||
*/
|
||||
fun removeToolkitByTag(toolTagList: List<String>) {}
|
||||
|
||||
/**
|
||||
* 网约车回调登陆信息
|
||||
*/
|
||||
fun invokeLoginInfo() {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.mogo.eagle.core.function.api.och
|
||||
|
||||
import com.mogo.eagle.core.data.enums.Carmodel
|
||||
|
||||
/**
|
||||
* 定义给 Och 业务层调用的接口后注册监听的接口
|
||||
*/
|
||||
interface IOchFunctionCallNotify {
|
||||
|
||||
/**
|
||||
* 网约车回调登陆信息
|
||||
*/
|
||||
fun notifyLoginInfo() {}
|
||||
|
||||
// 车型变化回调
|
||||
fun notifyCarMode(carModel: Carmodel?){}
|
||||
|
||||
// 车牌变化回调
|
||||
fun notifyPlateNumber(plateNumber: String?){}
|
||||
|
||||
fun LoginOut() {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.mogo.eagle.core.function.api.och.toolkit
|
||||
|
||||
import android.content.Context
|
||||
|
||||
/**
|
||||
* 工具箱-item点击事件监听
|
||||
*/
|
||||
interface IToolKitItemClickListener {
|
||||
fun onItemClick(toolTag: String, ctx: Context?)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.mogo.eagle.core.function.api.och.toolkit
|
||||
|
||||
import android.view.View
|
||||
|
||||
/**
|
||||
* 添加 工具箱 自定义样式item时参数bean
|
||||
*/
|
||||
data class ToolKitCustomItemAddParam(
|
||||
var toolTag: String, //唯一标识tag,和前面toolTag重复的,默认不添加,跳过
|
||||
var customView: View, //自定义view
|
||||
var position: Int //在列表中排列位置 (1...N), position大于当前列表size最大值的默认放列表最后
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.mogo.eagle.core.function.api.och.toolkit
|
||||
|
||||
/**
|
||||
* 添加 工具箱 默认样式item时参数bean
|
||||
*/
|
||||
data class ToolKitDefaultItemAddParam(
|
||||
var toolTag: String, //唯一标识tag,和前面toolTag重复的,默认不添加,跳过
|
||||
var toolTitle: String, // 工具名称
|
||||
var toolDrawableIcon: Int, // icon drawable 资源文件id,
|
||||
var position: Int //在列表中排列位置 (1...N), position大于当前列表size最大值的默认放列表最后
|
||||
)
|
||||
Reference in New Issue
Block a user