ItemSegment

public class ItemSegment: Equatable

Undocumented

  • Undocumented

    Declaration

    Swift

    public init(samples: [LocomotionSample], timelineItem: TimelineItem? = nil)
  • Undocumented

    Declaration

    Swift

    public init(startDate: Date, activityType: ActivityTypeName, recordingState: RecordingState)
  • A final sample, to mark the end of this segment outside of the samples array.

    Typically this is shared with (and owned by) the following item segment, acting as a bridge to allow this segment to end at the point where the next begins, without the shared sample being incorrectly subjected to modifications made to this segment (eg activity type changes).

    Declaration

    Swift

    public var endSample: LocomotionSample?
  • Undocumented

    Declaration

    Swift

    public var startDate: Date?
  • Undocumented

    Declaration

    Swift

    public var endDate: Date?
  • Undocumented

    Declaration

    Swift

    public var recordingState: RecordingState?
  • Undocumented

    Declaration

    Swift

    public var activityType: ActivityTypeName?
  • Undocumented

    Declaration

    Swift

    public var duration: TimeInterval
  • Undocumented

    Declaration

    Swift

    public var dateRange: DateInterval?
  • Undocumented

    Declaration

    Swift

    public var center: CLLocation?
  • Undocumented

    Declaration

    Swift

    public var radius: Radius
  • Undocumented

    Declaration

    Swift

    public var distance: CLLocationDistance
  • Declaration

    Swift

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