Other Classes

The following classes are available globally.

Default MxM page builder

  • Undocumented

    See more

    Declaration

    Swift

    public class TKUIAlertViewController : UITableViewController
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUIAttributionTableViewController : UITableViewController
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUISectionedAlertViewController : UIViewController
    extension TKUISectionedAlertViewController: UITableViewDelegate
    extension TKUISectionedAlertViewController: UISearchBarDelegate
  • Undocumented

    See more

    Declaration

    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 more

    Declaration

    Swift

    public class TKUIResultsFetcher
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUINotificationManager : NSObject
  • 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

    @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 TKUIHomeComponentViewModel. The accompanying map manager is TKUINearbyMapManager and table view cell is TKUINearbyCell.

    See more

    Declaration

    Swift

    @MainActor
    public class TKUINearbyViewModel
    extension TKUINearbyViewModel: TKUIHomeComponentViewModel
  • Displays a list of items that the user can toggle on and off.

    Call the configure method to set the available items, then attach to rx_pickModes to listen to changes of the user tapping on items.

    See more

    Declaration

    Swift

    public class TKUIModePicker<Item> : UIView where Item : TKUIModePickerItem
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUINearbyCell : UITableViewCell
  • Undocumented

    See more

    Declaration

    Swift

    open class TKUIPolylineRenderer : MKPolylineRenderer
  • Undocumented

    See more

    Declaration

    Swift

    @objc
    open class TKUIStyledLabel : UILabel
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUITripBoyView : UIView
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUITripSegmentsView : UIView
  • Undocumented

    See more

    Declaration

    Swift

    open class TKUIAnnotationViewBuilder : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    open class TKUICircleAnnotationView : MKAnnotationView
  • A annotation to display a simple image on a map, which might have been downloaded from a server.

    See more

    Declaration

    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 more

    Declaration

    Swift

    public class TKUIModeAnnotationView : MKAnnotationView
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUISemaphoreView : MKAnnotationView
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUIProgressCell : UITableViewCell
  • Undocumented

    See more

    Declaration

    Swift

    open class TKUISheet : UIView
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUITimePickerSheet : TKUISheet
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUISegmentTitleView : UIView, TGPreferrableView
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUIAttributionView : UIView