TripKitAPI

The following declarations are provided by module TripKitAPI.

  • Undocumented

    Declaration

    Swift

    public typealias TKImage = UIImage
  • Top-Level Namespace for model structs that directly correspond to the TripGo API.

    See more

    Declaration

    Swift

    public struct TKAPI
  • Undocumented

    Declaration

    Swift

    public typealias TKColor = UIColor
  • Case-less enum just to create a namespace

    See more

    Declaration

    Swift

    public enum TKBooking
  • Information to identify and display a transport mode. Kind of like the big sibling of a mode identifier string.

    See more

    Declaration

    Swift

    public class TKModeInfo : NSObject, Codable
    extension TKModeInfo: NSSecureCoding
    From TripKitUI:
    extension TKModeInfo: TKUIModePickerItem
    extension TKModeInfo: Comparable
  • Undocumented

    See more

    Declaration

    Swift

    public struct TKRoutingQuery<Context>
    From TripKit:
    extension TKRoutingQuery: TKRouterRequestable where Context == NSManagedObjectContext
  • Undocumented

    See more

    Declaration

    Swift

    public struct TKAPIConfig : Equatable
    extension TKAPIConfig: Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum TKTransportMode : String, CaseIterable
  • Undocumented

    Declaration

    Swift

    public typealias TKFont = UIFont
  • A TKLogger is used by TKLog to perform the outputting and processing of log statements.

    A default TKConsoleLogger is provided.

    See more

    Declaration

    Swift

    public protocol TKLogger
  • A logger that outputs to the debugging console and the device’s console (via os_log)

    See more

    Declaration

    Swift

    public class TKConsoleLogger : TKLogger
  • The main class to log something from TripKit. The actual logging is done by the TKLogger instances set on the .logger property.

    See more

    Declaration

    Swift

    public class TKLog : NSObject
  • TKServer subclass that is forced to hit the provided baseURL and API key for SkedGo calls.

    See more

    Declaration

    Swift

    public class TKRoutingServer : TKServer
  • Declaration

    Swift

    extension Array

Helper for Codable + JSON

  • Declaration

    Swift

    extension JSONEncoder
  • Declaration

    Swift

    extension JSONDecoder
  • Declaration

    Swift

    extension Date
  • Declaration

    Swift

    extension NSError
  • Declaration

    Swift

    extension UserDefaults
  • Undocumented

    See more

    Declaration

    Swift

    public struct TKBookingData : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum TKErrorCode : Int
  • Undocumented

    See more

    Declaration

    Swift

    public class TKUserError : TKError, @unchecked Sendable
  • Undocumented

    Declaration

    Swift

    public class TKServerError : TKError, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Swift

    public class TKError : NSError, @unchecked Sendable
  • This class encapsulates information about the money cost of a trip segment.

    See more

    Declaration

    Swift

    public class TKLocalCost : NSObject, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum TKLocalCostAccuracy : String, Codable
  • This class encapsulates information about the map tiles of a trip segment.

    See more

    Declaration

    Swift

    public class TKMapTiles : NSObject, Codable
    From TripKitUI:
    extension TKMapTiles: TKUIMapTiles
  • Undocumented

    See more

    Declaration

    Swift

    public class TKMiniInstruction : NSObject, Codable, NSSecureCoding
  • Undocumented

    See more

    Declaration

    Swift

    public enum TKRegionParserError : Error
  • Undocumented

    See more

    Declaration

    Swift

    public class TKRegionCity : NSObject, Codable
  • Undocumented

    See more

    Declaration

    Swift

    @frozen
    public enum TKRoutingQueryTime : Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public enum TKTripCostType : Int, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum TKTurnByTurnMode : String, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Point : Hashable
    extension Point: Equatable
  • Declaration

    Swift

    extension CLLocationCoordinate2D
  • Undocumented

    Declaration

    Swift

    public func == (lhs: Point, rhs: Point) -> Bool
  • Undocumented

    See more

    Declaration

    Swift

    public struct Polygon
  • Declaration

    Swift

    From TripKitAPI:
  • Provides a default value for missing Decodable data.

    DefaultCodableStrategy provides a generic strategy type that the DefaultCodable property wrapper can use to provide a reasonable default value for missing Decodable data.

    See more

    Declaration

    Swift

    public protocol DefaultCodableStrategy
  • Decodes values with a reasonable default value

    @Defaultable attempts to decode a value and falls back to a default type provided by the generic DefaultCodableStrategy.

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct DefaultCodable<Default> where Default : DefaultCodableStrategy
    extension DefaultCodable: Decodable where Default.DefaultValue: Decodable
    extension DefaultCodable: Encodable where Default.DefaultValue: Encodable
    extension DefaultCodable: Equatable where Default.DefaultValue: Equatable
    extension DefaultCodable: Hashable where Default.DefaultValue: Hashable

KeyedDecodingContainer

ISO8601

  • Undocumented

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct ISO8601
    extension ISO8601: Decodable
    extension ISO8601: Encodable
    extension ISO8601: Equatable
    extension ISO8601: Hashable

OptionalISO8601

  • Undocumented

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct OptionalISO8601
    extension OptionalISO8601: Decodable
    extension OptionalISO8601: Encodable
    extension OptionalISO8601: Equatable
    extension OptionalISO8601: Hashable

ISO8601OrSecondsSince1970

  • Undocumented

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct ISO8601OrSecondsSince1970
    extension ISO8601OrSecondsSince1970: Decodable
    extension ISO8601OrSecondsSince1970: Encodable
    extension ISO8601OrSecondsSince1970: Equatable
    extension ISO8601OrSecondsSince1970: Hashable

OptionalISO8601OrSecondsSince1970

  • Undocumented

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct OptionalISO8601OrSecondsSince1970
    extension OptionalISO8601OrSecondsSince1970: Decodable
    extension OptionalISO8601OrSecondsSince1970: Encodable
    extension OptionalISO8601OrSecondsSince1970: Equatable
    extension OptionalISO8601OrSecondsSince1970: Hashable
  • Decodes Arrays filtering invalid values if applicable

    @LossyArray decodes Arrays and filters invalid values if the Decoder is unable to decode the value.

    This is useful if the Array is intended to contain non-optional types.

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct LossyArray<T>
    extension LossyArray: Decodable where T: Decodable
    extension LossyArray: Encodable where T: Encodable
    extension LossyArray: Equatable where T: Equatable
    extension LossyArray: Hashable where T: Hashable