[6.2.6][小智形象] 添加v2n小智形象状态回调
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user