TKUITripOverviewCard
@MainActor
public class TKUITripOverviewCard : TKUITableCard
extension TKUITripOverviewCard: TKUITripModeByModeCardDelegate
Undocumented
-
Undocumented
See moreDeclaration
Swift
public enum DefaultActionPriority : Int
-
Undocumented
Declaration
Swift
@MainActor public static var config: TKUITripOverviewCard.Configuration
-
Undocumented
Declaration
Swift
@MainActor public let initialTrip: Trip
-
Set this callback to include a “Show routes” button, which then presents the
TKUIRoutingResultsCard
and selecting a different trip will trigger this callback.Returning
true
will lead to that trip being displayed as usual in anotherTKUITripOverviewCard
that gets pushed, and returningfalse
will do nothing, i.e., the callback handles displaying it.Declaration
Swift
@MainActor public var selectedAlternativeTripCallback: ((Trip) -> Bool)?
-
Controls the “Get ready to leave” notifications when monitoring a trip that starts in the future.
Defaults to
true
, but can be turned off via this setting.Declaration
Swift
@MainActor public var includeTimeToLeaveNotification: Bool
-
Undocumented
Declaration
Swift
@MainActor public init(trip: Trip, index: Int? = nil)
-
Declaration
Swift
@MainActor override public func didBuild(tableView: UITableView, cardView: TGCardView)
-
Declaration
Swift
@MainActor public override func willAppear(animated: Bool)
-
Declaration
Swift
@MainActor public override func didAppear(animated: Bool)
-
Declaration
Swift
@MainActor public override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?)
-
Declaration
Swift
@MainActor public override func willDisappear(animated: Bool)
-
Undocumented
Declaration
Swift
@MainActor public func shows(tripURL: URL, tripID: String?) -> Bool
-
Creates a trip action with a “Go” title and arrow icon to indicate starting a trip
Declaration
Swift
@MainActor public static func buildStartTripAction(startingOn: TKSegment? = nil, label: String? = nil, mode: TKUISegmentMode = .getReady, style: TKUICardActionStyle = .bold, actionHandler: TKUITripModeByModeCard.TripStartedActionHandler? = nil) -> TKUITripOverviewCard.TripAction
Parameters
actionHandler
Optional handler, passed to
TKUITripModeByModeCard.tripStartedHandler
.Return Value
A new trip action to be used on a
TKUITripOverviewCard
-
Undocumented
Declaration
Swift
typealias TripAction = TKUICardAction<TGCard, Trip>
-
Undocumented
Declaration
Swift
typealias SegmentAction = TKUICardAction<TKUITripOverviewCard, TKSegment>
-
Configurtion of any
TKUITripOverviewCard
. Use this to add custom actions.This isn’t created directly, but rather you modify the static instance accessible from
See moreTKUITripOverviewCard.config
.Declaration
Swift
struct Configuration
-
Undocumented
Declaration
Swift
@MainActor public func modeByModeCard(_ card: TKUITripModeByModeCard, updatedTrip trip: Trip)