TKUIEventCallback

public struct TKUIEventCallback

This struct provides a single handler which is called when certain user events fire from the user interacting with the TripKitUI SDK.

Typical uses are to track how users interact with the SDK, provide context in error reports, or prompt the user for ratings when certain screens or cards are displayed frequently.

To inject your own custom actions into the SDK and track those don’t use this, but rather use the different Configuration options on the different cards, such as TKUITripOverviewCard.Configuration.

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

    Passed to TKUIEventCallback.handler

    See more

    Declaration

    Swift

    public enum Event
  • Set this global handler to be notified of any events that the user undertakes.

    Declaration

    Swift

    public static var handler: @MainActor (Event) -> Void