TKTripSegmentDisplayable

@objc
public protocol TKTripSegmentDisplayable : NSObjectProtocol

Protocol with minimum details to display the high-level details of a segment. An example use of this is TKUITripSegmentsView in TripKitUI.

  • tripSegmentModeColor Default implementation

    Default Implementation

    Declaration

    Swift

    var tripSegmentModeColor: TKColor? { get }
  • tripSegmentModeImage Default implementation

    Default Implementation

    Declaration

    Swift

    var tripSegmentModeImage: TKImage? { get }
  • tripSegmentModeImageURL Default implementation

    Default Implementation

    Declaration

    Swift

    var tripSegmentModeImageURL: URL? { get }
  • tripSegmentModeImageIsTemplate Default implementation

    If true, then tripSegmentModeImageURL should be treated as a template image and have an appropriate colour applied to it.

    Default Implementation

    Declaration

    Swift

    var tripSegmentModeImageIsTemplate: Bool { get }
  • tripSegmentModeImageIsBranding Default implementation

    If true, tripSegmentModeImageURL points at a brand image and should be shown next to tripSegmentModeImage; if false it shoud replace it.

    Default Implementation

    Declaration

    Swift

    var tripSegmentModeImageIsBranding: Bool { get }
  • tripSegmentModeInfoIconType Default implementation

    The icon to display on top of a mode icon to indicate issues with the mode itself, e.g., a service being cancelled or a car share vehicle not being available.

    Default Implementation

    Declaration

    Swift

    var tripSegmentModeInfoIconType: TKInfoIconType { get }
  • tripSegmentSubtitleIconType Default implementation

    The icon to display next to the sub-title to indicate secondary issues with the segment, e.g., an alert icon for real-time traffic issues.

    Default Implementation

    Declaration

    Swift

    var tripSegmentSubtitleIconType: TKInfoIconType { get }
  • tripSegmentModeTitle Default implementation

    A title to show next to the mode image.

    Default Implementation

    Declaration

    Swift

    var tripSegmentModeTitle: String? { get }
  • tripSegmentModeSubtitle Default implementation

    A subtitle to show next to the mode image.

    Default Implementation

    Declaration

    Swift

    var tripSegmentModeSubtitle: String? { get }
  • tripSegmentFixedDepartureTime Default implementation

    The segment’s departure time, if it’s a fixed time, e.g., public transport

    Default Implementation

    Declaration

    Swift

    var tripSegmentFixedDepartureTime: Date? { get }
  • tripSegmentTimeZone Default implementation

    Time zone of the segment. Required if tripSegmentFixedDepartureTime is implemented.

    Default Implementation

    Declaration

    Swift

    var tripSegmentTimeZone: TimeZone? { get }
  • tripSegmentTimesAreRealTime Default implementation

    Default Implementation

    Declaration

    Swift

    var tripSegmentTimesAreRealTime: Bool { get }
  • tripSegmentWheelchairAccessibility Default implementation

    Wheelchair accessibility of the segment. If it doesn’t apply, just return .unknown, as an .unknown value will always be ignored.

    Default Implementation

    Declaration

    Swift

    var tripSegmentWheelchairAccessibility: TKWheelchairAccessibility { get }