Model

public struct Model

The waypoint arrival view model.

Important

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

    Declaration

    Swift

    public init(
        title: String,
        waypointName: String,
        address: String,
        chargingStopModel: ChargingStopModel?,
        continueButtonText: String,
        onContinueAction: @escaping () -> ()
    )

    Parameters

    title

    the top title for the Waypoint Arrival view.

    waypointName

    the name of the waypoint for which WaypointArrivalView is shown.

    address

    the address of the waypoint.

    chargingStopModel

    the information for the charging stop in the waypoint.

    continueButtonText

    the text on the button associated with the continue action for WaypointArrivalView.

    onContinueAction

    the action that is triggered when the continue button is tapped.