Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitTransportThreadAlert

class MMKMasstransitTransportThreadAlert : NSObject

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

Summary

Class methods

 init(text: String,
    closed: MMKMasstransitTransportThreadAlertClosed?,
 closedUntil: MMKMasstransitTransportThreadAlertClosedUntil?,
  lastTrip: MMKMasstransitTransportThreadAlertLastTrip?)

Properties

var text: String { get }
Standard alert text

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

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

var lastTripMMKMasstransitTransportThreadAlertLastTrip? { 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: MMKMasstransitTransportThreadAlertClosed?,
 closedUntil: MMKMasstransitTransportThreadAlertClosedUntil?,
  lastTrip: MMKMasstransitTransportThreadAlertLastTrip?)


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: MMKMasstransitTransportThreadAlertClosed? { 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: MMKMasstransitTransportThreadAlertClosedUntil? { 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: MMKMasstransitTransportThreadAlertLastTrip? { 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.