TKUITripModeByModeCard
public class TKUITripModeByModeCard : TGPageCard
Undocumented
-
Undocumented
Declaration
Swift
public typealias TripStartedActionHandler = (TKUITripModeByModeCard, Trip) -> Void
-
Undocumented
Declaration
Swift
public static var config: TKUITripModeByModeCard.Configuration
-
An action handler that is called when the mode by mode card is presented. The first parameters is the mode by mode card launched, while the second is the trip whose segments are presented by the mode by mode card.
Declaration
Swift
public var tripStartedHandler: TripStartedActionHandler?
-
Undocumented
Declaration
Swift
public var modeByModeDelegate: TKUITripModeByModeCardDelegate?
-
Constructs a page card configured for displaying the segments on a mode-by-mode basis of a trip.
Declaration
Swift
public init(startingOn segment: TKSegment, mode: TKUISegmentMode = .getReady, mapManager: TKUITripMapManager? = nil, initialPosition: TGCardPosition = .peaking) throws
Parameters
segment
Segment to focus on first
-
Undocumented
Declaration
Swift
public convenience init(mapManager: TKUITripMapManager)
-
Undocumented
Declaration
Swift
public convenience init(trip: Trip, initialPosition: TGCardPosition = .peaking)
-
Declaration
Swift
public override func didBuild(cardView: TGCardView?, headerView: TGHeaderView?)
-
Declaration
Swift
public override func didAppear(animated: Bool)
-
Declaration
Swift
public override func didMoveToPage(index: Int)
-
Undocumented
Declaration
Swift
public func offsetToReach(mode: TKUISegmentMode, in segment: TKSegment) -> Int?
-
Undocumented
Declaration
Swift
public func shows(tripURL: URL, tripID: String?) -> Bool
-
Configurtion of any
TKUITripModeByModeCard
. Use this to determine how each page is built.This isn’t created directly, but rather you modify the static instance accessible from
See moreTKUITripModeByModeCard.config
.Declaration
Swift
public struct Configuration