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.

    You can use the DisposeBag to trigger an action that should be cancelled if the trip is no longer selected.

    Declaration

    Swift

    case tripSelected(Trip, controller: TGCardViewController, DisposeBag)
  • 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)