TKTrip

@objc
public protocol TKTrip : NSObjectProtocol
  • costValues Default implementation

    @return Mapping of boxed TKTripCostType to strings of their values.

    Default Implementation

    Declaration

    Swift

    var costValues: [NSNumber : String] { get }
  • Declaration

    Swift

    var departureTime: Date { get }
  • Declaration

    Swift

    var arrivalTime: Date { get }
  • Declaration

    Swift

    var departureTimeZone: TimeZone { get }
  • Declaration

    Swift

    var departureTimeIsFixed: Bool { get }
  • isArriveBefore Default implementation

    Default Implementation

    Declaration

    Swift

    var isArriveBefore: Bool { get }
  • Declaration

    Swift

    @objc(segmentsWithVisibility:)
    func segments(with type: TKTripSegmentVisibility) -> [TKTripSegment]
  • Declaration

    Swift

    func mainSegment() -> TKTripSegment
  • tripPurpose Default implementation

    Short title describing the trip’s purpose, e.g., “To work”

    Default Implementation

    Declaration

    Swift

    var tripPurpose: String? { get }
  • hasReminder Default implementation

    Whether this trip has at least one reminder and the reminder icon should be displayed.

    Default Implementation

    Declaration

    Swift

    var hasReminder: Bool { get set }
  • arrivalTimeZone Default implementation

    Time zone of the arrival time, if different from departureTimeZone

    Default Implementation

    Declaration

    Swift

    var arrivalTimeZone: TimeZone? { get }