add func of statusbar and func config wait to update

This commit is contained in:
zhongchao
2022-10-26 14:13:44 +08:00
parent 0ffda8fb65
commit 16c7bd9755
34 changed files with 730 additions and 94 deletions

View File

@@ -1,6 +1,7 @@
package com.mogo.eagle.core.function.call.hmi
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.launcher.ARouter
import com.mogo.eagle.core.data.bindingcar.IPCUpgradeStateInfo
import com.mogo.eagle.core.data.constants.MoGoFragmentPaths
@@ -292,7 +293,13 @@ object CallerHmiManager : CallerBase() {
waringProviderApi?.showModifyBindingcarDialog()
}
fun showUpgradeDialog(name: String, url: String, title: String, content: String, installType: String) {
fun showUpgradeDialog(
name: String,
url: String,
title: String,
content: String,
installType: String
) {
waringProviderApi?.showUpgradeDialog(name, url, title, content, installType)
}
@@ -397,7 +404,6 @@ object CallerHmiManager : CallerBase() {
waringProviderApi?.showVideoDialog(infList)
}
/**
* 设置 bus出车/收车View
* @param view
@@ -405,4 +411,19 @@ object CallerHmiManager : CallerBase() {
fun setBusOperationView(view: IOchBusView) {
waringProviderApi?.setBusOperationView(view)
}
/**
* 设置状态栏暗夜或明亮模式
* 默认 light
*/
fun setStatusBarDarkOrLight(light: Boolean = true) {
waringProviderApi?.setStatusBarDarkOrLight(light)
}
/**
* 更新(添加/删除)状态栏右侧元素
*/
fun updateStatusBarRightView(insert: Boolean, tag: String, viewGroup: ViewGroup) {
waringProviderApi?.updateStatusBarRightView(insert, tag, viewGroup)
}
}