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

The authentication status of each eMSP known to the system.

Link copied to clipboard

The properties of each eMSP known to the system.

Link copied to clipboard

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

Link copied to clipboard

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)

Request to start the authentication process for the specified eMSP. serviceIdentifiers are the keys returned by EvChargingMediatorService.emspInfos. The exact flow of events that form the authentication process is dependent upon the eMSP integration.

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

Request to log out of the eMSP service. The actual handling of this request should be implemented in the eMSP service plugin. See also EvChargingService.

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 startCharging(chargingStation: ChargingStation, chargingPointId: ChargingPointId, serviceIdentifier: EmspIdentifier?)

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

Link copied to clipboard
abstract suspend fun stopCharging()

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