TKModeInfo

public class TKModeInfo : NSObject, Codable, NSSecureCoding
From TripKitUI:
extension TKModeInfo: TKUIModePickerItem
extension TKModeInfo: @retroactive Comparable

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

  • The mode identifier string. Can be nil, e.g., for parking as that can apply to multiple modes.

    Declaration

    Swift

    @objc
    public let identifier: String?
  • alt

    Text representation of the image

    Declaration

    Swift

    @objc
    public let alt: String
  • Image part name; use with TKStyleManager.image(forModeImageName:)

    Declaration

    Swift

    @objc
    public let localImageName: String?
  • Image part name; use with TKServer.imageURL(iconFileNamePart:)

    Declaration

    Swift

    @objc
    public let remoteImageName: String?
  • If true, then remoteImageName should be treated as a template image and have an appropriate colour applied to it.

    Declaration

    Swift

    @objc
    public var remoteImageIsTemplate: Bool { get }
  • If true, remoteImageIsBranding points at a brand image and should be shown next to the local image; if false it shoud replace it.

    Declaration

    Swift

    @objc
    public var remoteImageIsBranding: Bool { get }
  • Additional descriptor for image, e.g., “GoGet”, “Shuttle”

    Declaration

    Swift

    @objc
    public let descriptor: String?
  • Undocumented

    Declaration

    Swift

    @objc
    public var color: TKColor? { get }
  • Determines if the saved mode is enabled or disabled.

    Declaration

    Swift

    @objc
    public var isEnabled: Bool { get }
  • Undocumented

    Declaration

    Swift

    @objc(modeInfoForDictionary:)
    public class func modeInfo(for json: [String : Any]?) -> TKModeInfo?
  • Undocumented

    Declaration

    Swift

    public static let unknown: TKModeInfo

Equatable

  • Undocumented

    Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool
  • Undocumented

    Declaration

    Swift

    public override var hash: Int { get }

NSSecure coding

  • Undocumented

    Declaration

    Swift

    public static var supportsSecureCoding: Bool { get }
  • Undocumented

    Declaration

    Swift

    @objc(encodeWithCoder:)
    public func encode(with aCoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    var glyphColor: TKColor? { get }
  • Undocumented

    Declaration

    Swift

    public var image: TKImage? { get }
  • Undocumented

    Declaration

    Swift

    public var imageURL: URL? { get }
  • Undocumented

    Declaration

    Swift

    public func image(type: TKStyleModeIconType) -> TKImage?
  • Undocumented

    Declaration

    Swift

    public func imageURL(type: TKStyleModeIconType) -> URL?
  • imageURLIsTemplate From TripKitUI

    Declaration

    Swift

    public var imageURLIsTemplate: Bool { get }
  • imageTextRepresentation From TripKitUI

    Declaration

    Swift

    public var imageTextRepresentation: String { get }
  • imageURLIsBranding From TripKitUI

    Declaration

    Swift

    public var imageURLIsBranding: Bool { get }
  • <(_:_:) From TripKitUI

    Declaration

    Swift

    public static func < (lhs: TKModeInfo, rhs: TKModeInfo) -> Bool