[6.7.0][接口] refactor: 将鹰眼base接口和och 接口根据调用方法区分开;
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
package com.mogo.eagle.core.function.api.och
|
||||
|
||||
import android.view.View
|
||||
import com.mogo.eagle.core.data.enums.Carmodel
|
||||
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 业务层调用的接口
|
||||
*/
|
||||
interface IEagleBaseFunctionCall4Och {
|
||||
|
||||
/**
|
||||
* 注册 工具箱 item点击事件监听 (默认样式item的点击事件监听,自定义样式的item的点击交给view自己处理)
|
||||
*/
|
||||
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> {
|
||||
return emptySet()
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据toolTag 移除工具箱中工具
|
||||
*/
|
||||
fun removeToolkitByTag(toolTagList: List<String>) {}
|
||||
|
||||
/**
|
||||
* Och设置车型
|
||||
*/
|
||||
fun setOchCarModel(carModel: Carmodel) {}
|
||||
|
||||
/**
|
||||
* Och设置 车牌
|
||||
*/
|
||||
fun setOchPlateNumber(plateNumber: String?) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.mogo.eagle.core.function.api.och
|
||||
|
||||
/**
|
||||
* 定义提供给 鹰眼底层 调用的接口
|
||||
*/
|
||||
interface IOchBizFunctionCall4Eagle {
|
||||
/**
|
||||
* 退出登录
|
||||
*/
|
||||
fun logout()
|
||||
}
|
||||
Reference in New Issue
Block a user