[6.5.0]融合红绿灯额外提示

This commit is contained in:
xuxinchao
2024-06-29 23:55:36 +08:00
parent 611c19549e
commit d646a6a256
9 changed files with 271 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package com.mogo.eagle.core.function.call.v2x
import android.util.Log
import com.mogo.eagle.core.data.enums.DataSourceType
import com.mogo.eagle.core.data.enums.TrafficLightEnum
import com.mogo.eagle.core.data.biz.trafficlight.TrafficLightResult
@@ -71,6 +72,18 @@ object CallerTrafficLightListenerManager : CallerBase<IMoGoTrafficLightListener>
}
}
/**
* 红绿灯额外提示框
* @param currentState 当前灯态
* @param currentDuration 当前灯态倒计时
*/
fun onShowTrafficLightPrompt(currentState: TrafficLightEnum,currentDuration: Int){
M_LISTENERS.forEach{
val listener = it.value
listener.onShowTrafficLightPrompt(currentState,currentDuration)
}
}
/**
* 展示融合带有下一下二灯态的红绿灯
* @param currentState 当前灯态