DocumentModel
Model that loads documents from a DocumentStore and keeps them updated.
This model exposes a StateFlow of all documents as DocumentInfo and listens to live updates from the store. If a Document has no card art the model creates a default card art using Branding.renderFallbackCardArt. The model also maintains a persistent order of documents and applications can call e.g. setDocumentPosition to change the order.
Use DocumentModel.create to create an instance.
Properties
Link copied to clipboard
A list of DocumentInfo for the documents in documentStore.
Link copied to clipboard
The list of document IDs in their current display order.
Functions
Link copied to clipboard
Cancels live event collection for this DocumentModel.
Link copied to clipboard
Sets the ordering of documents in the model.
Link copied to clipboard
Sets the position of a document.