-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Arc App's brexit() method to LocoKit #13
Comments
This is in the [Aside: I mistagged the issue number on the initial commits, tagging them as #11 instead of #13. Oops.] The new method can be found in the new PersistentProcessor, and used thus: PersistentProcessor.extractItem(for: itemSegment, in: store) { newItem in
// do something with the newly created TimelineItem
} It takes an The new item will be a Basically this lets you take an item segment from a timeline item's The main use cases being things like extracting brief visits out of paths (for example a brief stop at the traffic lights while driving), extracting smaller visits out of larger visits (for example a brief visit to a shop inside a mall), etc. You can see this in action in Arc App's "Recorded Activities" view on timeline items. I'll post a screenshot shortly. |
So here's an example of a The screenshot shows a view of a single The This is what Arc App does when you tap on those rows in a timeline item's "Recorded Activities" view. |
Splitting this task off from #11, because it's not a requirement for that task, but will be nice to eventually have in LocoKit instead of hidden away in Arc App.
Background
The
brexit()
method allows for extracting anItemSegment
out of aTimelineItem
into a separate item (for example a brief visit to a specific mall shop within a larger mall visit) and intelligently maintaining the timeline's linked list as well as extracting path items between the new items, as appropriate.The reason the method is called "brexit" is because if the post processing doesn't go how you want it, you can get left with an unholy mess and wish you never tried in the first place.
Todos
The text was updated successfully, but these errors were encountered: