Важно

This feature is available in the Full MapKit SDK version

YMKMasstransitTransportThreadAlert

class YMKMasstransitTransportThreadAlert : NSObject

TransportThreadAlert are important annotations for mass transit ride sections of routes.

Summary

Class methods

 init(text: String,
    closed: YMKMasstransitTransportThreadAlertClosed?,
 closedUntil: YMKMasstransitTransportThreadAlertClosedUntil?,
  lastTrip: YMKMasstransitTransportThreadAlertLastTrip?)

Properties

var text: String { get }
Standard alert text

var closedYMKMasstransitTransportThreadAlertClosed? { get }
The value is set if the thread is not operational on that day

var closedUntilYMKMasstransitTransportThreadAlertClosedUntil? { get }
The value is set if the thread is not operational until the specified time

var lastTripYMKMasstransitTransportThreadAlertLastTrip? { get }
The value is set if this trip is the last trip for the thread

Class methods

init(text:closed:closedUntil:lastTrip:)

 init(text: String,
    closed: YMKMasstransitTransportThreadAlertClosed?,
 closedUntil: YMKMasstransitTransportThreadAlertClosedUntil?,
  lastTrip: YMKMasstransitTransportThreadAlertLastTrip?)


Properties

text

var text: String { get }

Standard alert text. Simple clients could use this text to get a pre-formatted message. If the client is unable to recognize the known structured alert, it should use the text field instead.


closed

var closed: YMKMasstransitTransportThreadAlertClosed? { get }

The value is set if the thread is not operational on that day. Only one of the values close, closedUntil and lastTrip is set for an alert.

Optional field, can be nil.


closedUntil

var closedUntil: YMKMasstransitTransportThreadAlertClosedUntil? { get }

The value is set if the thread is not operational until the specified time. Only one of the values close, closedUntil and lastTrip is set for an alert.

Optional field, can be nil.


lastTrip

var lastTrip: YMKMasstransitTransportThreadAlertLastTrip? { get }

The value is set if this trip is the last trip for the thread. Only one of the values close, closedUntil and lastTrip is set for an alert.

Optional field, can be nil.