EvChargingMediatorService

interface EvChargingMediatorService

Service responsible for providing access to e-Mobility Service Providers (eMSPs) in the system. One or more eMSPs may be available and can be used to charge the vehicle.

Types

Link copied to clipboard
data class BatteryAndRangeInfo(    val currentChargeLevel: Int,     val percentageChargeLevel: Int,     val normalizedChargeLevel: Double,     val remainingRange: Long) : Parcelable

A data class that represents information on battery charge level and remaining range.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val batteryAndRangeInfo: EvChargingMediatorService.BatteryAndRangeInfo?
Link copied to clipboard

The authentication status of each eMSP known to the system.

Link copied to clipboard
abstract val emspInfos: MirrorableMap<EmspIdentifier, EmspServiceInfo>

The properties of each eMSP known to the system.

Link copied to clipboard
abstract val evChargingState: ChargingState

Indicates the charging state for UI flow shown to end-user.

Link copied to clipboard
abstract val isEvChargingModalPanelShown: Boolean

Indicates that whether or not Modal panel should be shown to end-user.

Link copied to clipboard
abstract val sessionInfo: SessionInfo?

Session information: active charging point, session id and receipt of the charging session.

Functions

Link copied to clipboard
abstract suspend fun logIn(serviceIdentifier: EmspIdentifier)

Called when the user add an account for charging provider.

Link copied to clipboard
abstract suspend fun logOut(serviceIdentifier: EmspIdentifier)

Called when the user log out from the added online charging provider account.

Link copied to clipboard
abstract suspend fun onBatteryIconClicked()

Called when the user clicks on the icon to open the EV charging UI.

Link copied to clipboard
abstract suspend fun onDismissEvChargingModalPanel()

Called when the user has dismissed the EV charging modal panel.

Link copied to clipboard
abstract suspend fun onStartCharging(chargerId: String)

Called when the user has interacted with the UI to initiate a charging session.

Link copied to clipboard
abstract suspend fun onStopCharging()

Called when the user has interacted with the UI to stop an active charging session.