activity_store library

Activity Store

Provides local-first storage of recorded activities, synced with a backend.

This library covers the activity store, the activities with their files and metrics, the user profile, the shared activities a user keeps and the store events.

Main features

Classes

Activity Activity Store
An activity kept by an ActivityStore: identity, description, times, metrics, files and social data.
ActivityComment Activity Store
A comment on an Activity.
ActivityLike Activity Store
A like given to an Activity.
ActivityMetrics Activity Store
Summary metrics of an Activity.
ActivitySocial Activity Store
The likes and comments of an Activity.
ActivityStore Activity Store
Local-first activity storage, synced with the backend.
ActivityStoreConfig Activity Store
Storage and backend settings of an ActivityStore.
ActivityStoreListener Activity Store
Listener for the asynchronous events of an ActivityStore: uploads, fetches, shared activity resolves, profile sync and session expiry.
StoredActivityFile Activity Store
A file attached to an Activity: the canonical recorded track, a route thumbnail or a media file.
UserProfile Activity Store
A user's profile, kept locally and synced like the activities, one per user.

Enums

ActivityFileType Activity Store
The type of a file attached to an Activity.
ActivityStoreResult Activity Store
The outcome of an asynchronous ActivityStore operation, reported to an ActivityStoreListener.