TimelineStore
open class TimelineStore
An in-memory timeline data store. For persistent timeline data storage, see PersistentTimelineStore
.
-
Undocumented
Declaration
Swift
public weak var manager: TimelineManager?
-
Undocumented
Declaration
Swift
public let cacheDelegate = TimelineStoreCacheDelegate()
-
Undocumented
Declaration
Swift
public let mutex = UnfairLock()
-
Undocumented
Declaration
Swift
public func flushTheCaches()
-
Undocumented
Declaration
Swift
public func cachedObject(for objectId: UUID) -> TimelineObject?
-
Undocumented
Declaration
Swift
open func item(for itemId: UUID) -> TimelineItem?
-
Undocumented
Declaration
Swift
open func sample(for sampleId: UUID) -> LocomotionSample?
-
Undocumented
Declaration
Swift
open func createVisit(from sample: LocomotionSample) -> Visit
-
Undocumented
Declaration
Swift
open func createPath(from sample: LocomotionSample) -> Path
-
Undocumented
Declaration
Swift
open func createSample(from sample: ActivityBrainSample) -> LocomotionSample
-
Undocumented
Declaration
Swift
open func add(_ timelineItem: TimelineItem)
-
Undocumented
Declaration
Swift
open func add(_ sample: LocomotionSample)
-
Add a timeline object to the store, and retain it. This ensures that the object will not be removed until it is explictly released.
Declaration
Swift
public func retain(_ object: TimelineObject)
-
Undocumented
Declaration
Swift
public func retain(_ objects: [TimelineObject])
-
Release a timeline object from the store. Note that the object will still remain in the store’s cache until iOS decides to evict it.
Declaration
Swift
public func release(_ object: TimelineObject)
-
Undocumented
Declaration
Swift
open func release(_ objects: [TimelineObject])
-
Undocumented
Declaration
Swift
open func save(immediate: Bool = true)