Duration
public enum Duration
extension ParkingTicket.Duration: Equatable
Duration can be either exact amount of time or loosely defined period of time.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Exact amount of time of the duration.
Declaration
Swift
case explicit(duration: DateComponents, repeatable: Bool)Parameters
durationthe duration defined in calendar units.
repeatableindicates if the mentioned duration could be used in the ticket to extend the parking with this chunk of time.
repeatableapplies additively only between the previous and next “non-repeatable” tickets. -
Loosely defined period of time.
Declaration
Swift
case fuzzy(FuzzyDuration)
-
Compares two instances of ParkingTicket.Duration for equality
Declaration
Swift
public static func == (lhs: ParkingTicket.Duration, rhs: ParkingTicket.Duration) -> Bool
TomTom SDK for iOS (0.53.1)
Duration