[6.7.0][接口] refactor: 将鹰眼base接口和och 接口根据调用方法区分开;

This commit is contained in:
aibingbing
2024-09-24 11:53:31 +08:00
parent 75acdffb99
commit e94083f1fd
7 changed files with 225 additions and 15 deletions

View File

@@ -6,13 +6,11 @@ import android.view.LayoutInflater
import android.view.View
import androidx.constraintlayout.widget.ConstraintLayout
import com.mogo.eagle.core.data.enums.Carmodel
import com.mogo.eagle.core.function.api.och.IOchFunctionCall
import com.mogo.eagle.core.function.api.och.IOchFunctionCallNotify
import com.mogo.eagle.core.function.call.och.CallerOchFunctionCallManager
import com.mogo.eagle.core.function.call.och.CallerOchBizFunctionCall4EagleManager
import com.mogo.eagle.core.function.hmi.R
import kotlinx.android.synthetic.main.view_bone_container.view.clBoneBiz
import kotlinx.android.synthetic.main.view_bone_container.view.clBoneTab
import kotlinx.android.synthetic.main.view_bone_tab.view.carInfoTabView
class BoneContainerView @JvmOverloads constructor(
context: Context,
@@ -33,17 +31,15 @@ class BoneContainerView @JvmOverloads constructor(
override fun onAttachedToWindow() {
super.onAttachedToWindow()
CallerOchFunctionCallManager.addListener(TAG, this)
}
override fun onDetachedFromWindow() {
super.onDetachedFromWindow()
CallerOchFunctionCallManager.removeListener(TAG)
}
private fun initView() {
clBoneTab.loginOut {
CallerOchFunctionCallManager.invokeLoginOut()
CallerOchBizFunctionCall4EagleManager.logout()
}
}