onEVDataUpdated
Invoke when any component of EV data is changed so that it can be used in refresh requests. You can pass only changed components of EV data via data, all the previous values that have not changed will be cached on the SDK side. NOTE: Only provide parameters that are compatible with an EV route refresh. If you pass any other parameters via this method, the route refresh request will fail.
Example:
mapOf(
"ev_initial_charge" to "90",
"energy_consumption_curve" to "0,300;20,120;40,150",
"auxiliary_consumption" to "300"
)
Content copied to clipboard
If you previously invoked this function, and then the charge changes to 80, you can also invoke it again with only one parameter:
mapOf("ev_initial_charge" to "80")
Content copied to clipboard
as an argument. This way "ev_initial_charge" will be updated and the following parameters will be used from the previous invocation. It would be equivalent to passing the following map:
mapOf(
"ev_initial_charge" to "80",
"energy_consumption_curve" to "0,300;20,120;40,150",
"auxiliary_consumption" to "300"
)
Content copied to clipboard
Parameters
data
Map describing the changed EV data