ItemSegment
public class ItemSegment: Equatable
Undocumented
-
Undocumented
Declaration
Swift
public weak var timelineItem: TimelineItem?
-
Undocumented
Declaration
Swift
private(set) public var samples: [LocomotionSample] = []
-
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
-
Undocumented
Declaration
Swift
public var classifierResults: ClassifierResults?
-
Undocumented
Declaration
Swift
public var unfilteredClassifierResults: ClassifierResults?
-
Undocumented
Declaration
Swift
public func add(_ sample: LocomotionSample)
-
Undocumented
Declaration
Swift
public func add(_ samples: [LocomotionSample])
-
Undocumented
Declaration
Swift
public func remove(_ sample: LocomotionSample)
-
Undocumented
Declaration
Swift
public func remove(_ samples: [LocomotionSample])
-
Undocumented
Declaration
Swift
public func samplesChanged()