StorageUsageViewModel
ViewModel for the standalone storage usage screen.
Storage usage is assembled from platform cache bytes, generated gallery payloads, and downloaded model directories. The ViewModel listens to StorageUsageObserver instead of lifecycle callbacks so Settings summaries and the standalone screen refresh from the same invalidation signal.
Author
Dmitriy Moroz
Parameters
App coroutine dispatchers used by the MVI base class and IO work.
Reads generated gallery records whose payload strings are counted.
Deletes gallery records after explicit user confirmation.
Reads locally configured ONNX models.
Reads locally configured MediaPipe models.
Reads locally configured SDXL models.
Reads locally configured Core ML models on supported builds.
Deletes downloaded local model metadata and files.
Shared invalidation stream used by Settings and this screen.
Build metadata used to filter platform-supported model categories.
Standalone route navigation contract.
Filesystem bridge for cache and downloaded model byte accounting.
Error callback forwarded to the app-level error handling pipeline.
Constructors
Properties
Functions
Reads Core ML model bytes from the entire platform model store on iOS-style targets.
Returns true when Core ML is the only local model provider exposed by this platform.