Event

public enum Event

Enumeration of possible events that fire when a user interacts with the different components of the TripKitUI SDK.

Passed to TKUIEventCallback.handler

  • Fires whenever a card appears, including when going back to a previous card or when the card re-appears after presenting some other screen on top.

    Declaration

    Swift

    case cardAppeared(TGCard)
  • Fires when a particular screen appears, often presented modally from a card

    Declaration

    Swift

    case screenAppeared(name: String, controller: UIViewController)
  • Fires whenever the details of a trip are viewed

    Declaration

    Swift

    case tripSelected(Trip, controller: TGCardViewController)
  • Fires whenever the routing results were requested and finished loading

    Declaration

    Swift

    case routesLoaded(TripRequest, controller: TGCardViewController)
  • Fires when a timetable is viewed

    Declaration

    Swift

    case timetableSelected(TKTimetable, controller: TGCardViewController)