IosStorageUsagePlatformActions
private class IosStorageUsagePlatformActions(val fileSystem: IosStorageUsageFileSystem) : StorageUsagePlatformActions(source)
iOS implementation that measures and deletes app-private storage used by the usage screen.
Author
Dmitriy Moroz
Parameters
fileSystem
Shared iOS storage helper that knows the app cache and local model paths.
Functions
Link copied to clipboard
Deletes every downloaded model directory visible to the platform.
Link copied to clipboard
Deletes app cache files. Callers are responsible for showing confirmation first.
Link copied to clipboard
Returns total bytes occupied by every downloaded model directory visible to the platform.
Link copied to clipboard
Returns the current app cache directory size in bytes.
Link copied to clipboard
Returns total bytes occupied by downloaded model directories for modelIds.
Link copied to clipboard
Converts a raw storage counter into a user-visible amount.