NoOpStorageUsagePlatformActions

Fallback implementation for previews and platforms where storage inspection is unavailable.

Author

Dmitriy Moroz

Functions

Link copied to clipboard
open suspend override fun clearAllDownloadedModels()

Deletes every downloaded model directory visible to the platform.

Link copied to clipboard
open suspend override fun clearAppCache()

Deletes app cache files. Callers are responsible for showing confirmation first.

Link copied to clipboard
open suspend override fun getAllDownloadedModelsBytes(): Long

Returns total bytes occupied by every downloaded model directory visible to the platform.

Link copied to clipboard
open suspend override fun getAppCacheBytes(): Long

Returns the current app cache directory size in bytes.

Link copied to clipboard
open suspend override fun getDownloadedModelsBytes(modelIds: List<String>): Long

Returns total bytes occupied by downloaded model directories for modelIds.

Link copied to clipboard
open fun mapStorageBytesForUi(bytes: Long): Long

Converts a raw storage counter into a user-visible amount.