ChargingStopModel

public struct ChargingStopModel

The charging stop view model.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Creates a new ChargingStopModel instance with given parameters.

    Declaration

    Swift

    public init(
        vehicleChargeTitle: String,
        vehicleCharge: String,
        targetChargeTitle: String,
        targetCharge: String,
        vehicleChargeImageName: ImageName,
        targetChargeImageName: ImageName
    )

    Parameters

    vehicleChargeTitle

    the text associated with the current vehicle charge.

    vehicleCharge

    the string that defines the current vehicle charge level (e.g., 25%).

    targetChargeTitle

    the text associated with the target vehicle charge.

    targetCharge

    the string that defines the target vehicle charge level (e.g., 80%).

    vehicleChargeImageName

    an icon for the current vehicle charge level.

    targetChargeImageName

    an icon for the target vehicle charge level.

  • The text associated with the current vehicle charge.

    Declaration

    Swift

    public var vehicleChargeTitle: String
  • The string that defines the current vehicle charge level (e.g., 25%).

    Declaration

    Swift

    public var vehicleCharge: String
  • The text associated with the target vehicle charge.

    Declaration

    Swift

    public var targetChargeTitle: String
  • The string that defines the target vehicle charge level (e.g., 80%).

    Declaration

    Swift

    public var targetCharge: String
  • An icon for the current vehicle charge level.

    Declaration

    Swift

    public var vehicleChargeImageName: ImageName
  • An icon for the target vehicle charge level.

    Declaration

    Swift

    public var targetChargeImageName: ImageName