DocumentTracker
interface DocumentTracker
Saves the document automatically based of content changes.
Functions
Link copied to clipboard
abstract suspend fun saveOnStoryChanges(documentEditionFlow: Flow<Pair<StoryState, DocumentInfo>>, userId: String)
Saves both the state of the document using StoryState and also the meta information with DocumentInfo. A flow should be provided that notifies about the changes in the document.