[6.2.6][小智形象] 添加v2n小智形象状态回调

This commit is contained in:
renwj
2023-12-18 15:48:27 +08:00
parent dec66f0eee
commit 70ae305978
8 changed files with 130 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ import com.mogo.eagle.core.data.enums.WarningDirectionEnum.ALERT_WARNING_NON
import com.mogo.eagle.core.data.map.Infrastructure
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoHmiProvider
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener
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
/**
* @author xiaoyuzhou
@@ -294,4 +297,24 @@ object CallerHmiManager {
hmiProviderApi?.setTaxiUnmanedDriverLineRoutingVerifyMode(isMode)
}
/**
* 添加小智形象展示的状态监听
*/
fun registerXiaoZhiStatusChangeListener(listener: OnXiaoZhiStateChangeListener) {
hmiProviderApi?.registerXiaoZhiStatusChangeListener(listener)
}
/**
* 移除小智形象展示的状态监听
*/
fun unRegisterXiaoZhiStatusChangedListener(listener: OnXiaoZhiStateChangeListener) {
hmiProviderApi?.unRegisterXiaoZhiStatusChangedListener(listener)
}
/**
* 通知小智形象要变化了
*/
fun notifyXiaoZhiStatusChanged(event: Event, state: State) {
hmiProviderApi?.notifyXiaoZhiStatusChanged(event, state)
}
}