EnergyMix
public struct EnergyMix : Hashable
Represents details on the energy supplied at the charging location. Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Boolean flag indicating if the energy is 100% from regenerative sources.
Declaration
Swift
public var isGreenEnergy: Bool -
The list of energy sources. The sum of the percentages over the energy sources should be 100%.
Declaration
Swift
public var energySources: [EnergySource] -
Name of the energy supplier.
Declaration
Swift
public var supplier: String? -
Name of the energy suppliers product or plan.
Declaration
Swift
public var energyProduct: String? -
The list of environmental impacts from this energy mix.
Declaration
Swift
public var environmentalImpacts: [EnvironmentalImpact] -
Creates a new instance.
Declaration
Swift
public init(isGreenEnergy: Bool = false, energySources: [EnergySource] = [], supplier: String? = nil, energyProduct: String? = nil, environmentalImpacts: [EnvironmentalImpact] = [])