StopVisits

Objective-C

@interface StopVisits : NSManagedObject
extension StopVisits: MKAnnotation
extension StopVisits: UIActivityItemSource
extension StopVisits: TKURLShareable

Swift

class StopVisits : NSManagedObject

Represents a public transport service stopping at a particular stop (at a particular time)

Class methods

  • Undocumented

    Declaration

    Objective-C

    + (NSArray<NSSortDescriptor *> *)defaultSortDescriptors;

    Swift

    class func defaultSortDescriptors() -> [NSSortDescriptor]
  • Undocumented

    Declaration

    Objective-C

    + (NSPredicate *)departuresPredicateForStops:(NSArray<StopLocation *> *)stops
                                        fromDate:(NSDate *)date
                                          filter:(nullable NSString *)filter;

    Swift

    class func departuresPredicate(forStops stops: [StopLocation], from date: Date, filter: String?) -> NSPredicate

CoreData fields

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSNumber * bearing

    Swift

    var bearing: NSNumber? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSDate * originalTime

    Swift

    var originalTime: Date? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain) NSNumber * index

    Swift

    var index: NSNumber { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain) NSNumber * isActive

    Swift

    var isActive: NSNumber { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSDate * regionDay

    Swift

    var regionDay: Date? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSString * searchString

    Swift

    var searchString: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain) Service *service

    Swift

    var service: Service { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain) StopLocation *stop

    Swift

    var stop: StopLocation { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, retain, nullable) NSSet *shapes

    Swift

    var shapes: Set<AnyHashable>? { get set }

Instance fields + methods

  • Frequency information, platform, service name

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull secondaryInformation;

    Swift

    var secondaryInformation: String { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) TKStopVisitRealTime realTimeStatus

    Swift

    var realTimeStatus: TKStopVisitRealTime { get }
  • Time to count down to in a departures timetable. This is nil for frequency-based services, or if this is the final arrival at a stop.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *countdownDate;

    Swift

    var countdownDate: Date? { get }
  • Undocumented

    Declaration

    Objective-C

    - (NSString *)realTimeInformation:(BOOL)withOriginalTime;

    Swift

    func realTimeInformation(_ withOriginalTime: Bool) -> String
  • Compares two visits based on which one comes before another one.

    Declaration

    Objective-C

    - (NSComparisonResult)compare:(nonnull StopVisits *)other;

    Swift

    func compare(_ other: StopVisits) -> ComparisonResult

    Parameters

    other

    StopVisit of the same service (or connected service) to compare to

    Return Value

    ascending if self is before other, same if they are equal, descending if self is after other.

  • Declaration

    Swift

    @objc
    public func triggerRealTimeKVO()
  • Declaration

    Swift

    @objc
    public var timeZone: TimeZone { get }
  • Declaration

    Swift

    @objc
    public var frequency: NSNumber? { get }
  • Declaration

    Swift

    public var timing: TKServiceTiming { get set }
  • Declaration

    Swift

    @objc
    public func accessibilityDescription(includeRealTime: Bool) -> String

MKAnnotation

  • Declaration

    Swift

    public var title: String? { get }
  • Declaration

    Swift

    public var subtitle: String? { get }
  • Declaration

    Swift

    public var coordinate: CLLocationCoordinate2D { get }

UIActivityItemSource

Wheelchair accessibility extensions

  • Wheelchair accessibility of a service at a given stop

    If either the stop and the service are known to be inaccessible, this will return .notAccessible. If at least one is known to be accessible, this will return .accessible

    Declaration

    Swift

    var wheelchairAccessibility: TKWheelchairAccessibility { get }
  • Declaration

    Swift

    public var shareURL: URL? { get }