TripKitUI
The following declarations are provided by module TripKitUI.
-
Declaration
Swift
extension UIImage
-
Undocumented
See moreDeclaration
Swift
public struct TKUICardActionContent
-
Undocumented
See moreDeclaration
Swift
public enum TKUICardActionStyle : Equatable
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUIComposingMapManager : TGMapManager
-
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
See moreConfiguration
options on the different cards, such asTKUITripOverviewCard.Configuration
.Declaration
Swift
public struct TKUIEventCallback
-
This protocol defines the requirements for any map managers that want to take control of the map in a
See moreTKUIHomeCard
Declaration
Swift
@MainActor public protocol TKUICompatibleHomeMapManager : TGCompatibleMapManager
-
Undocumented
See moreDeclaration
Swift
@MainActor open class TKUILocationCard : TGTableCard
-
A simple map manager that displays the pin of the provided
See moreTKNamedCoordinate
Declaration
Swift
@MainActor public class TKUILocationMapManager : TKUIMapManager
-
Tiles that can be used on a
See moreTKUIMapManager
Declaration
Swift
public protocol TKUIMapTiles
-
Undocumented
See moreDeclaration
Swift
public protocol TKUIIdentifiableAnnotation : MKAnnotation
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUINearbyMapManager : TKUIMapManager
extension TKUINearbyMapManager: TKUICompatibleHomeMapManager
-
Provides arbitrary custom items to inject into the routing results screen.
See moreDeclaration
Swift
public protocol TKUIRoutingResultsCustomItemProvider
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUITripCell : UITableViewCell
-
An item to be displayed on the map
See moreDeclaration
Swift
public struct TKUIRoutingResultsMapRouteItem
extension TKUIRoutingResultsMapRouteItem: Equatable
-
Undocumented
See moreDeclaration
Swift
public protocol TKUIRoutingResultsMapManagerType : TGCompatibleMapManager
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUISegmentDirectionsCard : TGTableCard
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUISegmentInstructionCard : TGPlainCard
-
Undocumented
See moreDeclaration
Swift
@MainActor open class TKUITableCard : TGTableCard
-
Undocumented
Declaration
Swift
public protocol TKUITripMapManagerType : TGCompatibleMapManager
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUITripMapManager : TKUIMapManager, TKUITripMapManagerType
-
Undocumented
See moreDeclaration
Swift
open class TKUIDefaultPageBuilder : TKUITripModeByModePageBuilder
-
Undocumented
See moreDeclaration
Swift
public protocol TKUITripModeByModeCardDelegate
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUIAlertViewController : UITableViewController
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUIAttributionTableViewController : UITableViewController
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUISectionedAlertViewController : UIViewController
extension TKUISectionedAlertViewController: UITableViewDelegate
extension TKUISectionedAlertViewController: UISearchBarDelegate
-
Undocumented
See moreDeclaration
Swift
@objc @MainActor public class TKUISheetViewController : UIViewController
-
Undocumented
See moreDeclaration
Swift
public protocol TKUITripOverviewViewControllerDelegate : TGCardViewControllerDelegate
-
Declaration
Swift
From TripKitUI:extension Reactive where Base: NSManagedObjectContext
extension Reactive where Base == TKBuzzInfoProvider
extension Reactive where Base: TKRealTimeFetcher
public extension Reactive where Base == TKGeocoderHelper
extension Reactive where Base: MKLocalSearch
public extension Reactive where Base : TKLocationManager
extension Reactive where Base : TKBikePodLocation
extension Reactive where Base : TKCarPodLocation
extension Reactive where Base : TKCarParkLocation
extension Reactive where Base : TKFreeFloatingVehicleLocation
extension Reactive where Base == TKReporter
extension Reactive where Base == TKTripFetcher
extension Reactive where Base : TKRouter
extension Reactive where Base: TKRegionManager
extension Reactive where Base: TKServer
extension Reactive where Base == TKSettings
extension Reactive where Base == TKUITripMonitorManager
-
Declaration
Swift
extension ObservableType
-
Declaration
Swift
extension SharedSequenceConvertibleType
-
Declaration
Swift
From TripKitUI:extension PrimitiveSequenceType where Trait == SingleTrait
-
Declaration
-
Undocumented
See moreDeclaration
Swift
public enum TKLocationRealTime
-
Undocumented
See moreDeclaration
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 moreDeclaration
Swift
public class TKUIResultsFetcher
-
Declaration
Swift
extension TGCardViewController
-
Undocumented
See moreDeclaration
Swift
public struct TKUILocationInfo
-
Undocumented
See moreDeclaration
Swift
public enum TKUILocationHandlerAction
-
Undocumented
See moreDeclaration
Swift
public protocol TKUITripSegmentDisplayable
-
Undocumented
See moreDeclaration
Swift
public class TKUINotificationManager : NSObject
-
Undocumented
See moreDeclaration
Swift
public protocol TKUINotificationManagerDelegate : AnyObject
-
Undocumented
See moreDeclaration
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
andNSLocationWhenInUseUsageDescription
- Then call
TKUINotificationManager.shared.subscribe(to: .tripAlerts) { ... }
in your app. - Implement
TKUINotificationManagerDelegate
and set it onTKUINotificationManager.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 }
Declaration
Swift
@MainActor public class TKUITripMonitorManager : NSObject, ObservableObject
-
-
-
View model for a card that displays transport locations in a particular map region.
Can be used as a component on the home card as it implements
See moreTKUIHomeComponentViewModel
. The accompanying map manager isTKUINearbyMapManager
and table view cell isTKUINearbyCell
.Declaration
Swift
@MainActor public class TKUINearbyViewModel
extension TKUINearbyViewModel: TKUIHomeComponentViewModel
-
Declaration
Swift
extension CLLocationCoordinate2D
-
Undocumented
Declaration
Swift
public func == (lhs: TKUIRoutingResultsMapRouteItem, rhs: TKUIRoutingResultsMapRouteItem) -> Bool
-
-
Undocumented
See moreDeclaration
Swift
public enum TKUICardActionNormalStyle
-
Used as namespace
See moreDeclaration
Swift
public enum TKUICardActionsViewFactory
-
An item that
See moreTKUIModePicker
can displayDeclaration
Swift
public protocol TKUIModePickerItem : Hashable
-
Displays a list of items that the user can toggle on and off.
Call the
See moreconfigure
method to set the available items, then attach torx_pickModes
to listen to changes of the user tapping on items.Declaration
Swift
@MainActor public class TKUIModePicker<Item> : UIView where Item : TKUIModePickerItem
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUINearbyCell : UITableViewCell
-
Undocumented
See moreDeclaration
Swift
open class TKUIPolylineRenderer : MKPolylineRenderer
-
Undocumented
See moreDeclaration
Swift
@objc @MainActor open class TKUIStyledLabel : UILabel
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUITripBoyView : UIView
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUITripSegmentsView : UIView
-
Undocumented
See moreDeclaration
Swift
open class TKUIAnnotationViewBuilder : NSObject
-
For displaying an annotation in a
See moreMKMarkerAnnotationView
Declaration
Swift
public protocol TKUIGlyphableAnnotation : MKAnnotation
-
For displaying an annotation in a
See moreTKUIImageAnnotationView
Declaration
Swift
public protocol TKUIImageAnnotation : MKAnnotation
-
Undocumented
See moreDeclaration
Swift
public enum TKUISelectionCondition
-
Undocumented
See moreDeclaration
Swift
public protocol TKUISelectableOnMap
-
For displaying an annotation in a
See moreTKUIModeAnnotationView
Declaration
Swift
public protocol TKUIModeAnnotation : TKUIImageAnnotation
-
Undocumented
See moreDeclaration
Swift
public protocol TKUIStopAnnotation : TKUIModeAnnotation
-
Undocumented
See moreDeclaration
Swift
public protocol TKUICircleDisplayable : MKAnnotation
-
Undocumented
See moreDeclaration
Swift
@MainActor open class TKUICircleAnnotationView : MKAnnotationView
-
A annotation to display a simple image on a map, which might have been downloaded from a server.
See moreDeclaration
Swift
@objc @MainActor public class TKUIImageAnnotationView : MKAnnotationView
-
A annotation to display transport locations on the map.
Uses the mode icon in the centre, coloured circle around it. Also works with remote icons.
See moreDeclaration
Swift
@MainActor public class TKUIModeAnnotationView : MKAnnotationView
-
An annotation that can be displayed using TripKitUI’s
See moreTKUISemaphoreView
or just as a point on the map.Declaration
Swift
public protocol TKUISemaphoreDisplayable : TKUIImageAnnotation, TKUISelectableOnMap
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUISemaphoreView : MKAnnotationView
-
Undocumented
See moreDeclaration
Swift
@MainActor public struct TKUIDateTimePickerView : View
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUIDateTimePickerViewController : UIHostingController<TKUIDateTimePickerView>
-
Undocumented
See moreDeclaration
Swift
public class TKUIDateTimePickerViewModel : ObservableObject
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUIProgressCell : UITableViewCell
-
Undocumented
See moreDeclaration
Swift
@MainActor open class TKUISheet : UIView
-
Undocumented
See moreDeclaration
Swift
public protocol TKUITimePickerSheetDelegate : AnyObject
-
Undocumented
See moreDeclaration
Swift
public protocol TKUITimePickerSheetSelectionStateDelegate : AnyObject
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUITimePickerViewController : UIViewController
extension TKUITimePickerViewController: TKUITimePickerSheetSelectionStateDelegate
-
Undocumented
See moreDeclaration
Swift
public enum TKUISegmentMode
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUISegmentTitleView : UIView, TGPreferrableView
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUIAttributionView : UIView