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.
-
The top title for the
WaypointArrivalView
.Declaration
Swift
public var title: String
-
The name of the waypoint for which
WaypointArrivalView
is shown.Declaration
Swift
public var waypointName: String
-
The address of the waypoint.
Declaration
Swift
public var address: String
-
The information for the charging stop in the waypoint.
Declaration
Swift
public var chargingStopModel: ChargingStopModel?
-
The text on the button associated with the continue action for
WaypointArrivalView
.Declaration
Swift
public var continueButtonText: String
-
The action that is triggered when the continue button is tapped.
Declaration
Swift
public var onContinueAction: () -> ()