TripKitUI

The following declarations are provided by module TripKitUI.

Default MxM page builder

Supercharging

  • Declaration

    Swift

    From TripKitUI:
    public extension Array where Element == TKAutocompleting
  • Undocumented

    See more

    Declaration

    Swift

    public enum TKLocationRealTime
  • Undocumented

    See more

    Declaration

    Swift

    public enum TKRealTimeHelper
  • Fetches trips for a request

    Also takes care of localising the user, if the query involves the user’s current location, and handles being hit multiple times with different requests by only returning results from the last requested query.

    See more

    Declaration

    Swift

    public class TKUIResultsFetcher

Navigation helpers

  • Declaration

    Swift

    extension TGCardViewController
  • Undocumented

    See more

    Declaration

    Swift

    public struct TKUILocationInfo
  • Undocumented

    See more

    Declaration

    Swift

    public enum TKUILocationHandlerAction
  • Undocumented

    See more

    Declaration

    Swift

    public protocol TKUITripSegmentDisplayable
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUINotificationManager : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    public protocol TKUINotificationManagerDelegate : AnyObject
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUINotificationSubscription
  • The manager for trip notifications such as “get off at the next stop” or “your trip is about to start”

    Requirements:

    • Project > Your Target > Capabilities > Background Modes: Enable “Location Updates”
    • Project > Your Target > Info: Include both NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription
    • Then call TKUINotificationManager.shared.subscribe(to: .tripAlerts) { ... } in your app.
    • Implement TKUINotificationManagerDelegate and set it on TKUINotificationManager.shared.delegate

    Push notifications:

    An additional feature is server-side notifications related to a trip being monitored. This requires additional set-up:

    • Lastly, call TKUINotificationManager.shared.subscribe(to: .pushNotifications) { _ in }
    See more

    Declaration

    Swift

    @MainActor
    public class TKUITripMonitorManager : NSObject, ObservableObject

RxDataSource protocol conformance

RxDataSources

Helpers

RxDataSources protocol conformance

Map content

RxDataSources protocol conformance

RxDataSource protocol conformance

Visits along the way

RxDataSources protocol conformance

RxDataSource protocol conformance