MBEvent

public class MBEvent : Comparable

Event on the mobility timeline

  • Start date of this event

    Declaration

    Swift

    public var startDate: Date
  • End date of this event. If event is not finished the date will be Date.distantFuture.

    Declaration

    Swift

    public var endDate: Date
  • Duration of this event

    Declaration

    Swift

    public var duration: TimeInterval { get }
  • Compare startDate of both events

    Declaration

    Swift

    public static func < (lhs: MBEvent, rhs: MBEvent) -> Bool
  • Compare startDate and endDate of both events

    Declaration

    Swift

    public static func == (lhs: MBEvent, rhs: MBEvent) -> Bool