Notable Classes

  • An action that can be added to a TKUI<*>Card. An array of these actions is typically generated by a factory method in a card’s configuration property, e.g., TKUITripOverviewCard.config.tripActionsFactory or TKUIServiceCard.config.serviceActionsFactory

    For a concerte example, see TKUIStartTripAction.

    See more

    Declaration

    Swift

    open class TKUICardAction<Card, Model> where Card : TGCard
  • This class let’s you customise various aspects of TripKitUI that apply across multiple view controllers or cards. You can do this by setting the various parts of TKUICustomization.shared, which should be done before displaying any view controllers or cards.

    See more

    Declaration

    Swift

    public class TKUICustomization
  • The base class for map managers in TripKitUI

    The following diagram illustrates the relationships:

    ┌────────────────────────────────────────────────────────────────────┐
    │ TGCardViewController                                               │
    │ ┏━━━━━━━━━━━━━━━━━━━┓                   ╔════════════════════════╗ │
    │ ┃TGMapManager       ┃─ ─ ─Implements ─ ▶║TGCompatibleMapManager  ║ │
    │ ┗━━━━━━━━━━━━━━━━━━━┛                   ╚════════════════════════╝ │
    └───────────▲────────────────────────────────────────────────────────┘
                │
            Subclass──────────────────┐
                │                     │
    ┌───────────┼─────────────────────┼──────────────────────────────────┐
    │ TripKitUI │                     │                                  │
    │ ┏━━━━━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━━━━┓                        │
    │ ┃TKUIMapManager     ┃ ┃TKUIComposingMap...┃                        │
    │ ┗━━━━━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━━━━━┛                        │
    │           ▲                                                        │
    │       Subclass──────────────────┬─────────────────────┐            │
    │           │                     │                     │            │
    │ ┏━━━━━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━━━━┓  │
    │ ┃TKUIServiceMapMa...┃ ┃TKUIRoutingResul...┃ ┃TKUITripMapManager ┃  │
    │ ┗━━━━━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━━━━━┛  │
    └────────────────────────────────────────────────────────────────────┘
    
    See more

    Declaration

    Swift

    open class TKUIMapManager : TGMapManager