Other Classes
The following classes are available globally.
-
Undocumented
See moreDeclaration
Swift
public class TKUIComposingMapManager : TGMapManager
-
Undocumented
See moreDeclaration
Swift
open class TKUILocationCard : TGTableCard
-
A simple map manager that displays the pin of the provided
See moreTKNamedCoordinate
Declaration
Swift
public class TKUILocationMapManager : TKUIMapManager
-
Undocumented
See moreDeclaration
Swift
public class TKUINearbyMapManager : TKUIMapManager
extension TKUINearbyMapManager: TKUICompatibleHomeMapManager
-
Undocumented
See moreDeclaration
Swift
public class TKUITripCell : UITableViewCell
-
Undocumented
See moreDeclaration
Swift
public class TKUISegmentDirectionsCard : TGTableCard
-
Undocumented
See moreDeclaration
Swift
public class TKUISegmentInstructionCard : TGPlainCard
-
Undocumented
See moreDeclaration
Swift
open class TKUITableCard : TGTableCard
-
Undocumented
See moreDeclaration
Swift
public class TKUITripMapManager : TKUIMapManager, TKUITripMapManagerType
-
Undocumented
See moreDeclaration
Swift
open class TKUIDefaultPageBuilder : TKUITripModeByModePageBuilder
-
Undocumented
See moreDeclaration
Swift
public class TKUIAlertViewController : UITableViewController
-
Undocumented
See moreDeclaration
Swift
public class TKUIAttributionTableViewController : UITableViewController
-
Undocumented
See moreDeclaration
Swift
public class TKUISectionedAlertViewController : UIViewController
extension TKUISectionedAlertViewController: UITableViewDelegate
extension TKUISectionedAlertViewController: UISearchBarDelegate
-
Undocumented
See moreDeclaration
Swift
@objc public class TKUISheetViewController : UIViewController
-
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
-
Undocumented
See moreDeclaration
Swift
public class TKUINotificationManager : NSObject
-
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
@available(iOS 14.0, *) @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
-
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
public class TKUIModePicker<Item> : UIView where Item : TKUIModePickerItem
-
Undocumented
See moreDeclaration
Swift
public class TKUINearbyCell : UITableViewCell
-
Undocumented
See moreDeclaration
Swift
open class TKUIPolylineRenderer : MKPolylineRenderer
-
Undocumented
See moreDeclaration
Swift
@objc open class TKUIStyledLabel : UILabel
-
Undocumented
See moreDeclaration
Swift
public class TKUITripBoyView : UIView
-
Undocumented
See moreDeclaration
Swift
public class TKUITripSegmentsView : UIView
-
Undocumented
See moreDeclaration
Swift
open class TKUIAnnotationViewBuilder : NSObject
-
Undocumented
See moreDeclaration
Swift
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 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
public class TKUIModeAnnotationView : MKAnnotationView
-
Undocumented
See moreDeclaration
Swift
public class TKUISemaphoreView : MKAnnotationView
-
Undocumented
See moreDeclaration
Swift
public class TKUIProgressCell : UITableViewCell
-
Undocumented
See moreDeclaration
Swift
open class TKUISheet : UIView
-
Undocumented
See moreDeclaration
Swift
public class TKUISegmentTitleView : UIView, TGPreferrableView
-
Undocumented
See moreDeclaration
Swift
public class TKUIAttributionView : UIView